Was troubleshooting something and thought switching from http 1.1 to http2 would solve the specific problem. It didn't, but It might still be useful for someone else to be able to serve content as http2 when using https. We have been using .pfx files as our certificates, and most documentation of Tomcat stuff is always about pem and chain files. The Tomcat documentation is not as good as I had wished, and there is no proper testing command for Tomcat that I know of (like nginx -T).
So after some trial and error, this is how we combined .pfx certificates and http2 configuration:
https, http2 and pfx certificates, Tomcat configuration
Re: https, http2 and pfx certificates, Tomcat configuration
thats cool.
There's a ton of examples out there for Tomcat and certs, and everyone seems to do it a different way. Frustrating.
Don't know if this is bad or less secure, but
i stopped messing with the keystore this way:
There's a ton of examples out there for Tomcat and certs, and everyone seems to do it a different way. Frustrating.
Don't know if this is bad or less secure, but
i stopped messing with the keystore this way:
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.
Jaymer
Aware Programming & Consulting - Tampa FL
Jaymer
Aware Programming & Consulting - Tampa FL
Re: https, http2 and pfx certificates, Tomcat configuration
The main reason for us to use .pfx is because our certs are initially created inside IIS on a different server, then they are exported as .pfx files and used in various servers.
Pretty sure it is possible for us to do the trinity thing (key, bundle, cert) like in your configuration, but I am afraid it would involve some extra steps in our case. I just thought the Tomcat documentation was lacking a bit, so hopefully some pfx fanboys out there can use this code snippet.
Pretty sure it is possible for us to do the trinity thing (key, bundle, cert) like in your configuration, but I am afraid it would involve some extra steps in our case. I just thought the Tomcat documentation was lacking a bit, so hopefully some pfx fanboys out there can use this code snippet.