道歉我对这个问题有点不合时宜,所以希望这里有所有需要的信息......
我们在本地开发人员测试系统上运行以下内容:Weblogic Server 10.3.0 with Java 1.6.0_38。
我有一个开发人员正在使用新的支付处理器开发一些代码,他们需要从供应商导入自签名证书到Weblogic的java密钥库。
Weblogic系统非常开箱即用。 SSL甚至不在托管服务器上运行。我们的CMS供应商安装它(很差)并且有很多默认设置。
开发人员尝试通过执行以下操作几次导入证书...
他运行以下命令将证书导入密钥库...
C:\Java\jdk1.6.0_20\bin\keytool -import -alias moneris_test_java -file K:\Java\jdk1.6.0_20\test_cert.der -keystore K:\apps\core\appserver\weblogic\config\teststore.jks
密码是正确的,我可以在密钥库中看到两个证书(这一个和另一个)。
我相信当没有找到旧密码时,他也试图重新创建密钥库。然后他进入WLS控制台并将密钥库密码更新为他创建的新密码。
我找到了他的密码,我们将原始密钥库重命名为原始命名,我们可以导入新证书。做一个keytool -list,我们可以看到两个证书都安装在那里。我们还回到了WLS控制台并将密码更新为正确的密码,并检查了Weblogic中的文件路径与我们对密钥库的密码库相同。
现在每当他试图启动他的托管服务器时,我都会让他关注。 ms启动但是抱怨它无法加载密钥,应用程序无法与供应商建立连接。
<Aug 20, 2013 4:03:23 PM PDT> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
<Aug 20, 2013 4:03:23 PM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
<Aug 20, 2013 4:03:23 PM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
<Aug 20, 2013 4:03:23 PM PDT> <Notice> <Security> <BEA-090171> <Loading the identity certificate and private key stored under the alias testcert from the jks keystore file K:\bmapps\core\appserver\web
logic\config\teststore.jks.>
<Aug 20, 2013 4:03:23 PM PDT> <Alert> <Security> <BEA-090716> <Failed to retrieve identity key/certificate from keystore K:\bmapps\core\appserver\weblogic\config\teststore.jks under alias testcert on
server mec>
<Aug 20, 2013 4:03:23 PM PDT> <Error> <WebLogicServer> <BEA-000297> <Inconsistent security configuration, weblogic.management.configuration.ConfigurationException: Failed to retrieve identity key/cert
ificate from keystore K:\bmapps\core\appserver\weblogic\config\teststore.jks under alias testcert on server mec>
<Aug 20, 2013 4:03:23 PM PDT> <Emergency> <Security> <BEA-090034> <Not listening for SSL, java.io.IOException: Failed to retrieve identity key/certificate from keystore K:\bmapps\core\appserver\weblog
ic\config\teststore.jks under alias testcert on server mec.>
<Aug 20, 2013 4:03:23 PM PDT> <Notice> <Security> <BEA-090171> <Loading the identity certificate and private key stored under the alias testcert from the jks keystore file K:\bmapps\core\appserver\web
logic\config\teststore.jks.>
<Aug 20, 2013 4:03:23 PM PDT> <Alert> <Security> <BEA-090716> <Failed to retrieve identity key/certificate from keystore K:\bmapps\core\appserver\weblogic\config\teststore.jks under alias testcert on
server mec>
<Aug 20, 2013 4:03:23 PM PDT> <Error> <WebLogicServer> <BEA-000297> <Inconsistent security configuration, weblogic.management.configuration.ConfigurationException: Failed to retrieve identity key/cert
ificate from keystore K:\bmapps\core\appserver\weblogic\config\teststore.jks under alias testcert on server mec>
<Aug 20, 2013 4:03:23 PM PDT> <Emergency> <Security> <BEA-090034> <Not listening for SSL, java.io.IOException: Failed to retrieve identity key/certificate from keystore K:\bmapps\core\appserver\weblog
ic\config\teststore.jks under alias testcert on server mec.>
<Aug 20, 2013 4:03:23 PM PDT> <Warning> <Server> <BEA-002611> <Hostname "8LG63M1.mecnet.lcl", maps to multiple IP addresses: 172.16.79.6, 127.0.0.1>
<Aug 20, 2013 4:03:23 PM PDT> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 172.16.79.6:7010 for protocols iiop, t3, ldap, snmp, http.>
<Aug 20, 2013 4:03:23 PM PDT> <Warning> <Server> <BEA-002611> <Hostname "local.mec.ca", maps to multiple IP addresses: 172.16.79.6, 127.0.0.1>
<Aug 20, 2013 4:03:23 PM PDT> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 127.0.0.1:7010 for protocols iiop, t3, ldap, snmp, http.>
<Aug 20, 2013 4:03:23 PM PDT> <Notice> <WebLogicServer> <BEA-000332> <Started WebLogic Managed Server "mec" for domain "bluemartini" running in Development Mode>
<Aug 20, 2013 4:03:23 PM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
<Aug 20, 2013 4:03:23 PM PDT> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
答案 0 :(得分:0)
导入证书时,使用的别名是“moneris_test_java”,而WebLogic正在寻找“testcert”,因此这可能是一个问题。
此外,我没有看到相应的私钥被导入密钥库的任何地方。你能检查一下吗?如果将其用作服务器的标识密钥库,则需要私钥和相应的证书。