Get certificate fingerprint of HTTPS server from command line?

The page at http://wiki.debuntu.org/wiki/OpenSSL#Retrieving_certificate_informations lists the command lines for that (and printing out the relevant information). From that page and some of the man pages, it seems like what you want is (for bash): openssl s_client -connect <host>:<port> < /dev/null 2>/dev/null | openssl x509 -fingerprint -noout -in /dev/stdin If you want the whole certificate, leave … Read more

Issue using certbot with nginx

I was trying to create Let’s Encrypt certificate using certbot for my sub-domain and had the following issue. Command: ubuntu@localhost:~$ certbot –nginx -d my_subdomain.website.com -d my_subdomain2.website.com Issue: The requested Nginx plugin does not appear to be installed Solution: Ubuntu 20+ ubuntu@localhost:~$ sudo apt-get install python3-certbot-nginx Earlier Versions ubuntu@localhost:~$ sudo apt-get install python-certbot-nginx

wget ssl alert handshake failure

It works from here with same OpenSSL version, but a newer version of wget (1.15). Looking at the Changelog there is the following significant change regarding your problem: 1.14: Add support for TLS Server Name Indication. Note that this site does not require SNI. But www.coursera.org requires it. And if you would call wget with … Read more

Force my heroku app to use SSL (https)

On Heroku, it’s slightly tricky to determine the fact that the request came in over http. https is handled at a heroku routing layer and it passes along the request to the node app on http). This post got me unstuck http://jaketrent.com/post/https-redirect-node-heroku/

If you use HTTPS will your URL params will be safe from sniffing? [duplicate]

Yes your URL would be safe from sniffing; however, one hole that is easily overlooken is if your page references any third party resources such as Google Analytics, Add Content anything, your entire URL will be sent to the third party in the referer. If its really sensitive it doesn’t belong in the query string. … Read more

HTTPS login with Spring Security redirects to HTTP

Your spring configuration should be agnostic to the used protocol. If you use something like “requires-channel”, you’ll run into problems sooner or later, especially if you want to deploy the same application to a development environment without https. Instead, consider to configure your tomcat properly. You can do this with RemoteIpValve. Depending on which headers … Read more