Aliyun tomcat free configuration https
http://www.wxapp-union.com/forum.php?mod=viewthread&tid=394
Tomcat enables HTTPS protocol configuration process
http://blog.csdn.net/gane_cheng/article/details/53001846
Tomcat domain name binding
http://www.cnblogs.com/weiguo21/p/4824020.html
Tomcat enables HTTPS protocol configuration process
http://blog.csdn.net/gane_cheng/article/details/53001846
WeChat Mini Program - WeChat Pay
http://blog.csdn.net/zhaoyazhi2129/article/details/53941396
When configuring ssl, if the following error is reported:
java.lang.Exception: Connector attribute SSLCertificateFile must be defined when using SSL with APR
Carefully look at the above exception information and find that this is an error reported by APR. Tomcat 6 also has an APR package but I've never used it. Check out Tomcat's ssl-how for this , in the " Edit the Tomcat Configuration File" section it says:
- Tomcat provides two SSL implementations, one is a JSSE implementation and the other is an APR implementation.
- Tomcat will automatically choose which implementation to use, i.e. APR if APR is installed, JSSE otherwise.
- If we don't want to let Tomcat choose automatically, but we specify an implementation ourselves, we can define it through the protocol, as follows:
I've only heard of APR before but never done it. What is APR file? It was only later discovered that the APR file was named tcnative-1.dll. Further inspection of the installation directories of 6.0 and 7.0 found that the dll file was not present in 6.0, but was present in 7.0. In other words, 6.0 uses the JSSE implementation by default, while 7.0 uses the APR implementation by default.
It's easy to figure out why. Because of the habit of using the configuration method of 6.0 (that is, JSEE implementation), just modify the protocol in the above conf\server.xml:
<Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol" SSLEnabled="true" maxThreads="150" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" keystoreFile="${user.home}/.keystore" keystorePass="changeit" />