This is an automated email from the ASF dual-hosted git repository.
alexstocks pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-getty.git
The following commit(s) were added to refs/heads/master by this push:
new 4dc6252 fix: wrong tls config
new 532bf58 Merge pull request #98 from ZLBer/tls
4dc6252 is described below
commit 4dc6252ce98c9c1370355c2602544d877fded662
Author: zlb <[email protected]>
AuthorDate: Sun Oct 23 02:18:21 2022 +0800
fix: wrong tls config
---
tls.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tls.go b/tls.go
index f4a87f4..6340d7e 100644
--- a/tls.go
+++ b/tls.go
@@ -89,7 +89,7 @@ type ClientTlsConfigBuilder struct {
// BuildTlsConfig impl TlsConfigBuilder method
func (c *ClientTlsConfigBuilder) BuildTlsConfig() (*tls.Config, error) {
- cert, err := tls.LoadX509KeyPair(c.ClientTrustCertCollectionPath,
c.ClientPrivateKeyPath)
+ cert, err := tls.LoadX509KeyPair(c.ClientKeyCertChainPath,
c.ClientPrivateKeyPath)
if err != nil {
log.Error(fmt.Sprintf("Unable to load X509 Key Pair %v", err))
return nil, err