当我从 cmd 行运行 Tomcat 6 时,SSL 工作正常。当我从 Netbeans 中运行它时,它无法以错误开始:
java.lang.Exception: No Certificate file specified or invalid file format
SSL 配置是默认的开箱即用配置:
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
/>