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 ciphers -v expands a cipher string into the real list

Openssl
~/tips/tip-openssl-ciphers-v

openssl ciphers -v 'ECDHE+AESGCM'

See exactly which cipher suites a config string like ECDHE+AESGCM allows.

Server configs use cipher strings such as HIGH:!aNULL:!MD5, which are hard to read. openssl ciphers -v shows which suites a string actually turns into.

Give it the string from your config:

openssl ciphers -v 'ECDHE+AESGCM'
openssl ciphers -s -v -tls1_2 'HIGH:!aNULL'

Each line shows the suite name, the protocol version, key exchange, authentication, encryption and MAC, for example ECDHE-RSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH Au=RSA Enc=AESGCM(256) Mac=AEAD. The second command adds -s and -tls1_2 to show only what would be used for TLS 1.2.

One thing I’d point out: the TLS 1.3 suites show up at the top whatever string you give. They are configured separately, with -ciphersuites in OpenSSL and ssl_conf_command Ciphersuites in nginx, so the classic cipher string does not touch them.

The list comes from the OpenSSL on your machine, which may differ from the one your server software is linked against. Check on the server itself. Also, this shows what a string allows, not what a running server offers. For that, connect to it with s_client or a scanner. For ready made strings, the Mozilla SSL Configuration Generator is a good start.

Further reading: OpenSSL: openssl-ciphers, Mozilla SSL Configuration Generator

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

More Openssl tips openssl s_client -connect 203.0.113.10:443 -servername example.com </dev/null | openssl x509 -noout -subject openssl x509 -in cert.pem -days 365 -signkey key.pem -out cert-new.pem printf %s hello | openssl dgst -sha256 -hmac secret openssl pkcs12 -legacy -in old.pfx -nokeys echo 'aGVsbG8gd29ybGQ=' | openssl base64 -d All Openssl tips (34) All topics

Link