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 x509 -ext subjectAltName lists the names a certificate covers, a security check

Security
~/tips/tip-security-openssl-x509-ext-subjectaltname

openssl x509 -in fullchain.pem -noout -subject -issuer -dates -ext subjectAltName

Prints the hostnames, issuer and dates of a certificate file in one line of commands.

A browser checks the Subject Alternative Name list, not the common name. I read that list before I blame the proxy.

openssl x509 -in fullchain.pem -noout -subject -issuer -dates -ext subjectAltName

One command prints who the certificate is for, who issued it, the validity dates and every hostname it covers. A missing name here is the usual reason for a name mismatch error, for example when a wildcard covers *.example.com but you use example.com.

-ext needs OpenSSL 1.1.1 or newer, which every current Debian and Ubuntu release has. Remember that a wildcard does not cover the bare domain and only one level of subdomains.

Further reading: openssl x509 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