在Tomcat8中启用SSL
我想在godaddy托管的网站上启用SSL 我正在使用tomcat服务器,并根据godaddy的 我已在密钥库上成功安装CA证书:在Tomcat8中启用SSL,ssl,ssl-certificate,tomcat8,godaddy-api,Ssl,Ssl Certificate,Tomcat8,Godaddy Api,我想在godaddy托管的网站上启用SSL 我正在使用tomcat服务器,并根据godaddy的 我已在密钥库上成功安装CA证书: pssserver, Sep 3, 2018, PrivateKeyEntry, Certificate fingerprint (SHA1): xx:xx:xx:xx: and so on root, Sep 3, 2018, trustedCertEntry, Certificate fingerprint (SHA1): xx:xx:x
pssserver, Sep 3, 2018, PrivateKeyEntry,
Certificate fingerprint (SHA1): xx:xx:xx:xx: and so on
root, Sep 3, 2018, trustedCertEntry,
Certificate fingerprint (SHA1): xx:xx:xx:xx: and so on
intermed, Sep 3, 2018, trustedCertEntry,
Certificate fingerprint (SHA1): xx:xx:xx: and so on
并配置了tomcat:
<Connector port="443" protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" keystoreFile="C:\tomcat.jks" type="RSA" keystorePass="pss@2012" />
并强制在webapp上启用SSL:
<security-constraint>
<web-resource-collection>
<web-resource-name>ecommerce</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
电子商务
/*
保密的
然后我重新启动了服务器
但是在那之后,由于最后一步,我不能再访问我的网站了。
我试过https://website.com:443
但它也没有加载
我错过了什么?请引导我
PS:
在localhost中,它工作正常,尽管它提供的连接不安全,包括localhost中的项目。以下连接器配置可能会有所帮助
<Connector port="443" protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="150" SSLEnabled="true">
<SSLHostConfig>
<Certificate certificateKeystoreFile="C:\tomcat.jks" certificateKeystorePassword="pss@2012" type=""/>
</SSLHostConfig>
</Connector>
有人知道这个问题吗?请使用netstat-an检查它是否正在本地主机(127.0.0.1)或接口上侦听。如果在本地主机上侦听,则相应地更改连接器(但它似乎是正确的,默认情况下它正在侦听所有接口)。如果正在侦听接口,请禁用防火墙并进行检查。