Enabling SSL on tomcat using pem file

While most answers concentrate on versions 7.0 and 8.0 of Tomcat that were supported at the time of the question, since version 8.5.2 (May 2016) it is possible to use PEM files directly without conversion to a PKCS12 file. You can either: put the PEM encoded private key and all certificates in the order from … Read more

Does using //www.example.com in Javascript chose http/https protocol automatically

http://paulirish.com/2010/the-protocol-relative-url/ has a great article regarding this very issue. Included here: The protocol-relative URL October 27th, 2010 Author : Paul Irish There’s this little trick you can get away with that’ll save you some headaches: <img src=”//domain.com/img/logo.png”> If the browser is viewing that current page in through HTTPS, then it’ll request that asset with the … Read more

IE cannot download foo.jsf. IE was not able to open this internet site. The requested site is either unavailable or cannot be found

This is a typical MSIE error message when a download is been provided over HTTPS (SSL) while the response headers are been set to disable the browser cache via no-cache. This issue is not related to JSF. You need to relax the response headers which have influence on the browser cache. It should not contain … Read more

How do I use the node.js request module to make an SSL call with my own certificate?

This largely elaborates on Peter Lyons’ answer, providing an example. I am assuming that you are requesting a domain running over HTTPS with a certificate signed by your own certificate authority (ca). When using the request library, as you do, there is no need to actually instantiate the agent yourself, you can simply provide some … Read more