当我在 Eclipse IDE 中运行 Tomcat 服务器时,我无法浏览 https,但是当我使用 .exe 文件运行时,它可以使用 https 浏览。在 server.xml 中,我们编写了如下的连接器程序。
<Connector
clientAuth="true" protocol="HTTP/1.1" port="8443" minSpareThreads="5" maxSpareThreads="75"
enableLookups="true" disableUploadTimeout="true"
keystore="C:/Program Files/Apache Software Foundation/Tomcat 7.0/conf/keystore.jks"
keystorePass="123456"
acceptCount="100" maxThreads="200"
scheme="https" secure="true" SSLEnabled="true"
KeyStorePass="123456"
SSLCertificateFile="C:\Program Files\Apache Software Foundation\Tomcat 7.0\test.cer"
SSLCertificateKeyFile="C:\Program Files\Apache Software Foundation\Tomcat 7.0\test.key"
SSLCACertificateFile="C:\Program Files\Apache Software Foundation\Tomcat 7.0\CertPath.txt"
SSLVerifyClient="require" SSLEngine="on" SSLVerifyDepth="2" sslProtocol="TLS"
/>