-
1. Re: SSL configuration with the Tomcat server
jfclere Aug 24, 2011 1:49 AM (in response to anandrajk)try to put the file in a subdirectory of the jboss installation.
-
2. Re: SSL configuration with the Tomcat server
anandrajk Aug 24, 2011 3:33 AM (in response to jfclere)Hi Jean,
Thanks for the reply
I have two concerns over here.
1:- I have tried copying the SSL KeyStore files to the CONF directory, still it throws up the same error.
2:- Secondly there should not be any dependency about the location of the Certificate files.
Any pointers would be highly appreciated.
Regards,
Anandraj
-
3. Re: SSL configuration with the Tomcat server
jschultz Jan 5, 2012 11:27 AM (in response to anandrajk)Replace protocol="HTTP/1.1" with protocol="org.apache.coyote.http11.Http11NioProtocol"
Apparently the protocol handler that is instantiated when protocol="HTTP/1.1" does not have the clientAuth, keystorePath, and keystorePass properties.
-
4. Re: SSL configuration with the Tomcat server
jfclere Jan 6, 2012 4:22 AM (in response to jschultz)Nio is not in EAP/JBossWeb: JBossWeb isn't Tomcat
-
5. Re: SSL configuration with the Tomcat server
jfclere Jan 6, 2012 4:32 AM (in response to jfclere)BTW: Back to the orginal post... It seems that using Native, native needs the certificate and key in 2 files in PEM format, the most easy it to use openssl to generate the files, something like:
openssl genrsa -des3 -out newkey.pem 1024
openssl req -new -key newkey.pem -out server.csr
openssl x509 -req -days 365 -in server.csr -signkey newkey.pem -out newcert.pem
Then use
SSLCertificateFile
="
newcert.pem"SSLCertificateKeyFile="
newkey.pem" in the connector. -
6. Re: SSL configuration with the Tomcat server
jschultz Jan 6, 2012 9:50 AM (in response to anandrajk)Is this not the Tomcat integration section? :-P
I just ran into this same issue configuring JBOSS 4.2.3, which is why I proposed this fix.
-
7. Re: SSL configuration with the Tomcat server
jfclere Jan 9, 2012 3:12 AM (in response to jschultz)There isn't a Http11NioProtocol in the jboss integration so I don't see how your suggestion could work.
-
8. Re: SSL configuration with the Tomcat server
jschultz Jan 9, 2012 9:50 AM (in response to jfclere)Respectfully, I am not looking for a debate of whether or not Http11NioProtocol exists within a specific version of JBoss. The fix came straight out of the JBoss docs.
http://docs.jboss.org/jbossweb/3.0.x/ssl-howto.html
http://docs.jboss.org/jbossweb/2.1.x/config/http.html
Albeit, the docs are not for EAP, however they worked for me with JBoss 4.2.3, which I thought might help in this situation.
-
9. Re: SSL configuration with the Tomcat server
jfclere Jan 10, 2012 4:13 AM (in response to jschultz)I have fixed the jbossweb docs... Again protocol="org.apache.coyote.http11.Http11NioProtocol" shouldn't work: we removed the sources of corresponding classes years ago.
-
10. Re: SSL configuration with the Tomcat server
jschultz Jan 10, 2012 10:15 AM (in response to jfclere) -
11. Re: SSL configuration with the Tomcat server
nmitchell Oct 10, 2013 3:37 PM (in response to anandrajk)I had this same issue. I was able to resolve it by changing the protocol on my connector like so:
<Connector protocol=”org.apache.coyote.http11.Http11Protocol" SSLEnabled=”true”
port=”8443" address=”${jboss.bind.address}”
scheme=”https” secure=”true” clientAuth=”false”
keystoreFile=”G:\SSLCerts\identity.jks”
keystorePass=”password” sslProtocol = “TLS” />
Hope this helps