You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by da...@apache.org on 2021/08/31 17:47:59 UTC

[skywalking-java] 01/01: Update TLSChannelBuilder.java

This is an automated email from the ASF dual-hosted git repository.

daming pushed a commit to branch dmsolr-patch-1
in repository https://gitbox.apache.org/repos/asf/skywalking-java.git

commit 5dc076b75eba048b1ce5ae06e93671d1cde6eb3c
Author: Daming <zt...@foxmail.com>
AuthorDate: Wed Sep 1 01:47:51 2021 +0800

    Update TLSChannelBuilder.java
---
 .../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()) {