WebSphere Liberty P12无法启用TLS

时间:2016-09-29 20:43:52

标签: ssl curl websphere-liberty server.xml p12

尝试在WebSphere Liberty配置文件上启用SSL / TLS时,WLP无法允许SSL连接。

setTimeout(function() { location.href='https://www.facebook.com/myprofile'; }, 10);

发出<?xml version="1.0" encoding="UTF-8"?> <server description="DefaultServer"> <!-- Enable features --> <featureManager> <feature>webProfile-7.0</feature> <feature>ssl-1.0</feature> </featureManager> <keyStore id="defaultKeyStore" location="/opt/wlp/usr/servers/defaultServer/wildcard.p12" type="PKCS12" password="******"/> <!-- To access this server from a remote client add a host attribute to the following element, e.g. host="*" --> <httpEndpoint id="defaultHttpEndpoint" host="*" httpPort="9080" httpsPort="9443" /> <!-- Automatically expand WAR files and EAR files --> <applicationManager autoExpand="true"/> </server> 时,我收到以下回复。如果我使用默认生成的curl https://localhost:9443 --insecure -vv

,则不会发生这种情况
<keyStore id="defautlKeyStore" password="somePassword"/>

有人能解释一下发生了什么吗?

一些.p12属性数据。请注意,下面显示的.p12具有私钥,并且省略了证书。

[~] curl https://localhost:9443 --insecure -vv

   About to connect() to localhost port 9443 (#0)
   Trying ::1...
   Connected to localhost (::1) port 9443 (#0)
   Initializing NSS with certpath: sql:/etc/pki/nssdb
   NSS error -5938 (PR_END_OF_FILE_ERROR)
   Encountered end of file
   Closing connection 0
   curl: (35) Encountered end of file

0 个答案:

没有答案