brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: openssl s_client -tls1_1 tests whether a server still accepts old TLS, a security check

Security
~/tips/tip-security-openssl-s-client-old-tls

openssl s_client -connect example.com:443 -servername example.com -tls1_1 </dev/null

Forces one TLS version in the handshake to see whether a server still accepts it.

I want to know whether a server still allows protocol versions that should be gone. A forced handshake answers it.

openssl s_client -connect example.com:443 -servername example.com -tls1_1 </dev/null
openssl s_client -connect example.com:443 -servername example.com -tls1_3 </dev/null

-tls1_1 allows only that version in the handshake. A good server answers with a handshake failure, while a printed certificate and a negotiated protocol line mean the old version is still enabled. -tls1_2 and -tls1_3 work the same way.

The local OpenSSL can refuse old protocols on its own because of its security level, so a failure may come from your client. Test against a server you know is lenient to be sure, and only scan hosts you run.

Further reading: openssl s_client manual page

Going deeper: Run degoog on Unraid as your own search page, compared with SearXNG and 4get

More Security tips tcpdump -nn -r capture.pcap port 53 mkcert -install Strict-Transport-Security: max-age=0 Referrer-Policy: strict-origin-when-cross-origin wp super-admin list All Security tips (79) All topics

Link