How can I enable SSL for Tomcat using a pair of crt/key file?
I tried this:
I enabled the APR connector in server.xml configuration:
<Connector port="443" maxHttpHeaderSize="8192"
maxThreads="150"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
SSLEnabled="true"
SSLCertificateFile="my.crt"
SSLCertificateKeyFile="my.key" />
I had to use APR instead of Http11NioProtocol because crt and key file are updated/renewed automatically by an external process. And seems that Http11NioProtocol can use only keystore.
Then I tried to install APR:
sudo apt-get install libapr1 libapr1-dev
I reloaded Tomcat, but APR is not found:
org.apache.catalina.LifecycleException: The configured protocol [org.apache.coyote.http11.Http11AprProtocol] requires the APR/native library which is not available