尝试添加使用自签名证书的端点时出现以下错误。请找到下面的图片
[2017-07-11 11:09:52,227]错误 - APIProviderHostObject连接到后端时发生错误:https://mytestserver.com,原因:sun.security.validator.ValidatorException:PKIX路径构建失败:sun.security。 provider.ce rtpath.SunCertPathBuilderException:无法找到所请求目标的有效证书路径 javax.net.ssl.SSLHandshakeException:sun.security.validator.ValidatorException:PKIX路径构建失败:sun.security.provider.c ertpath.SunCertPathBuilderException:无法找到所请求目标的有效证书路径
能告诉我如何解决这个问题吗? 到目前为止,我已尝试过以下内容 1.添加-Dhttpclient.hostnameVerifier = AllowAll属性 2.创建新的密钥库并添加自签名证书。还将自签名证书添加到java密钥库
答案 0 :(得分:1)
您必须获取此主机的公共证书,并将其安装到APIM的Private Sub CommandButton1_Click()
Dim objWord As Object
Dim ws As Worksheet
Set ws = ThisWorkbook.Sheets("Report")
Set objWord = CreateObject("Word.Application")
objWord.Visible = True
objWord.Documents.Open "C:\Users\Christopher\Desktop\EIG\ReportTemplate.docx"
With objWord.ActiveDocument
.Bookmarks("User").Range.Text =ws.Range("A1").Value
.Bookmarks("Type").Range.Text =ws.Range("A2").Value
End With
Set objWord = Nothing
End Sub
文件中。
client-truststore.jks