Go to bin folder in server
Run the command
keytool -genkey -keyalg RSA -alias selfsigned -keystore keystore.jks -storepass password -validity 360 -keysize 2048
then
keytool -list -keystore keystore.jks
In conf\server.xml edit it as
//...
<!-- Define a SSL HTTP/1.1 Connector on port 8443
This connector uses the JSSE configuration, when using APR, the
connector should be using the OpenSSL style configuration
described in the APR documentation -->
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="my key store file path"
keystorePass="password" />
//...
keystorePass =“password”是您通过“keytool”命令分配给密钥库的密码。


然后点击URL https://localhost:8443/

谢谢您的回复作者Abhijit,如何将添加已在.PFX格式被提供的证书。这可能吗? – NAP50
是可能的,这对你有用,然后请给我一个打勾... 只使用扩展名为.pfx而不是.jks –
感谢您解释Abhijit。 – NAP50