We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffd97b4 commit 5df0350Copy full SHA for 5df0350
mitm/src/main/java/net/lightbody/bmp/mitm/TrustSource.java
@@ -174,7 +174,7 @@ public TrustSource add(File trustedCAPemFile) {
174
175
String pemFileContents;
176
try {
177
- pemFileContents = Files.toString(trustedCAPemFile, StandardCharsets.UTF_8);
+ pemFileContents = Files.asCharSource(trustedCAPemFile, StandardCharsets.UTF_8).read();
178
} catch (IOException e) {
179
throw new UncheckedIOException("Unable to read file containing PEM-encoded trusted CAs: " + trustedCAPemFile.getAbsolutePath(), e);
180
}
0 commit comments