您可能未正确导入证书和密钥。您可以通过将以下内容添加到JUnit或类似内容中来测试密钥库:
static { System.setProperty("javax.net.ssl.keyStoreType", "pkcs12"); // or whatever System.setProperty("javax.net.ssl.keyStore", "c:/folder/mycert.p12"); System.setProperty("javax.net.ssl.keyStorePassword", "mypassword"); System.setProperty("javax.net.debug", "ssl");}javax.net.debug设置为的属性
ssl将打印您的证书链和所有其他SSL日志记录,这可能会有所帮助。您将想要将证书等添加到应用程序容器中,就像已经在生产中一样。
尝试使用SSL进行调试,看看会带来什么。您很有可能只需要正确配置weblogic。检查是否有自定义SSL端点配置(即,当URI为/ test /
test时,使用keyStore XYZ)。



