我一直在为下面这个问题重新搜索,我看到很多人都有同样的问题。根据我的决议,我能够验证我有一个旧证书,并能够安装新证书。在cacerts中安装新证书时,我仍然会在尝试从网址下载文件时收到以下内容。
cannot download the xml file
javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: u
nable to find valid certification path to requested target
我使用的命令如下:
/app/financial/prd/thirdparty/java/bin/keytool -import -alias fincert1 -file /tmp/treasurydirect5.cer -keystore
/app/financial/prd/thirdparty/java/jre/lib/security/cacerts
作为最后的手段,我决定在这里提出问题,因为已经多次询问了上述问题。但是,我在安装新证书后仍然收到错误。
我通过运行以下命令确认已安装新证书:
/app/financial/prd/thirdparty/java/bin/keytool -list -v -keystore /app/financial/prd/thirdparty/java/jre/lib/security/cacerts -storepass <password>
非常感谢任何其他细节。感谢