Update TLSChannelBuilder.java (#16)

This commit is contained in:
Daming 2021-09-01 07:54:17 +08:00 committed by GitHub
parent dd0d8afe88
commit 2b51932055
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ public class TLSChannelBuilder implements ChannelBuilder<NettyChannelBuilder> {
if (certFile.isFile() && keyFile.isFile()) {
try (InputStream cert = new FileInputStream(certFile);
InputStream key = PrivateKeyUtil.loadDecryptionKey(keyPath)) {
InputStream key = PrivateKeyUtil.loadDecryptionKey(keyFile.getAbsolutePath())) {
builder.keyManager(cert, key);
}
} else if (!certFile.isFile() || !keyFile.isFile()) {