<div dir="ltr"><div style="font-size:12.8px">Hi,</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">This is regarding the configuration of Tomcat SSL using the APR library on Java 6.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">While starting the server I am getting the below error:</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">SEVERE: Failed to initialize end point associated with ProtocolHandler ["http-apr-443"]</div><div style="font-size:12.8px">java.lang.Exception: Unable to load certificate key conf/localhost-key.pem (error:02001003:system library:fopen:No such process)</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I am trying to implement SSL using independent libraries for OpenSSL, Tomcat Native and Apache Portable Runtime.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I have downloaded precompiled versions of OpenSSL and Tomcat Native (see them attached). I have tried compiling the Apache Portable Runtime using Visual Studio (find it also attached).</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I am running those libraries on either Tomcat 7.0.6 or 7.0.70 64-bit for Windows (using the 64-bit distro, not the installer one).</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">We are restricted by our applicatioin to use Oracle Java 6 Updated 115 64-bit.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">The versions of the libraries I am using are the latest available online, again see the binaries attached.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">The parameters used in the server.xml file are:</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">For Tomcat 7.0.6:</div><div style="font-size:12.8px"><span style="white-space:pre-wrap"> </span><Connector</div><div style="font-size:12.8px"><span style="white-space:pre-wrap"> </span>   protocol="org.apache.coyote.http11.Http11AprProtocol"</div><div style="font-size:12.8px"><span style="white-space:pre-wrap">  </span>   port="443" maxThreads="200"</div><div style="font-size:12.8px"><span style="white-space:pre-wrap">  </span>   scheme="https" secure="true" SSLEnabled="true"</div><div style="font-size:12.8px"><span style="white-space:pre-wrap">     </span>   SSLCertificateFile="conf/localhost-cert.pem"</div><div style="font-size:12.8px"><span style="white-space:pre-wrap">   </span>   SSLCertificateKeyFile="conf/localhost-key.pem"</div><div style="font-size:12.8px"><span style="white-space:pre-wrap"> </span>   SSLCertificateChainFile="conf/ca.crt"</div><div style="font-size:12.8px"><span style="white-space:pre-wrap">  </span>   SSLVerifyClient="optional" SSLProtocol="TLSv1"</div><div style="font-size:12.8px"><span style="white-space:pre-wrap">       </span>   SSLCipherSuite="HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!kRSA"/></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">For Tomcat 7.0.70</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><span style="white-space:pre-wrap">       </span><Connector</div><div style="font-size:12.8px"><span style="white-space:pre-wrap"> </span>   protocol="org.apache.coyote.http11.Http11AprProtocol"</div><div style="font-size:12.8px"><span style="white-space:pre-wrap">  </span>   port="443" maxThreads="200"</div><div style="font-size:12.8px"><span style="white-space:pre-wrap">  </span>   scheme="https" secure="true" SSLEnabled="true"</div><div style="font-size:12.8px"><span style="white-space:pre-wrap">     </span>   SSLCertificateFile="conf/localhost-cert.pem"</div><div style="font-size:12.8px"><span style="white-space:pre-wrap">   </span>   SSLCertificateKeyFile="conf/localhost-key.pem"</div><div style="font-size:12.8px"><span style="white-space:pre-wrap"> </span>   SSLCertificateChainFile="conf/ca.crt"</div><div style="font-size:12.8px"><span style="white-space:pre-wrap">  </span>   SSLVerifyClient="optional" SSLProtocol="TLSv1_2"</div><div style="font-size:12.8px"><span style="white-space:pre-wrap">     </span>   SSLCipherSuite="HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!kRSA"/></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">The library files are in the tomcat bin folder as openssl.exe, tcnative-1.dll and libapr-1.dll.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">tcnative-1.dll: <a href="https://drive.google.com/file/d/0ByilOlQCXOkWQ1ZCckhodHBvQk0/view?usp=sharing" target="_blank">https://drive.google.com/file/d/0ByilOlQCXOkWQ1ZCckhodHBvQk0/view?usp=sharing</a></div><div style="font-size:12.8px">openssl.exe: <a href="https://drive.google.com/file/d/0ByilOlQCXOkWQk9KUUJSb3ZqeW8/view?usp=sharing" target="_blank">https://drive.google.com/file/d/0ByilOlQCXOkWQk9KUUJSb3ZqeW8/view?usp=sharing</a></div><div style="font-size:12.8px">libapr-1.dll: <a href="https://drive.google.com/file/d/0ByilOlQCXOkWV09NTi0tNWxhZnM/view?usp=sharing" target="_blank">https://drive.google.com/file/d/0ByilOlQCXOkWV09NTi0tNWxhZnM/view?usp=sharing</a></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">The same certificates files mentioned in the server.xml file were used and work in a brand new Apache web server.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Please let us know your opinion of what can cause those errors? </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Can it be because of a APR dll not compiled properly?</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Any other idea?</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks,</div><div style="font-size:12.8px">Devendra</div></div>