尝试在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