如果我想调用AM生成的API,我应该在jre中导入哪个公钥?

时间:2017-01-06 08:09:24

标签: wso2 wso2esb wso2-am wso2carbon api-manager

作为以下日志,我编写了一个httpclient示例来调用AM生成的API。那么这里是错误日志,我应该在jre中导入哪个公钥?

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)


Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:387)
at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292)
at sun.security.validator.Validator.validate(Validator.java:260)
at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)

1 个答案:

答案 0 :(得分:0)

如果您使用默认密钥库,则可以将证书与别名waso2carbon一起使用。