You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2021/08/31 23:54:23 UTC
[skywalking-java] branch main updated: Update
TLSChannelBuilder.java (#16)
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-java.git
The following commit(s) were added to refs/heads/main by this push:
new 2b51932 Update TLSChannelBuilder.java (#16)
2b51932 is described below
commit 2b519320559ba94131b098e1258bd5fe41d487e4
Author: Daming <zt...@foxmail.com>
AuthorDate: Wed Sep 1 07:54:17 2021 +0800
Update TLSChannelBuilder.java (#16)
---
.../org/apache/skywalking/apm/agent/core/remote/TLSChannelBuilder.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/remote/TLSChannelBuilder.java b/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/remote/TLSChannelBuilder.java
index 6732467..55c8953 100644
--- a/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/remote/TLSChannelBuilder.java
+++ b/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/remote/TLSChannelBuilder.java
@@ -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()) {