List TLS ciphers and protocols
Grade the supported TLS versions and ciphers on a port and flag weak or deprecated ones.
nmap --script ssl-enum-ciphers -p 443 <host>
- tool
- troubleshooting32 commands
More troubleshooting commands
-
openssl s_client -connect <host>:443 -servername <host> -showcerts 2>/dev/null | grep -E 'Verify|s:|i:'Show the full chain with the right SNI; the Verify line catches missing intermediate certificates.
-
for h in $(cat hosts.txt); do echo -n "$h "; echo | openssl s_client -connect $h:443 -servername $h 2>/dev/null | openssl x509 -noout -enddate; donePrint the notAfter date for every host in hosts.txt to see which certificates expire soon.
-
cut -d. -f2 <<<"$JWT" | tr '_-' '/+' | base64 -d 2>/dev/null | jq .Decode the payload to check exp, iss and aud; it converts base64url but does not check the signature.
-
grpcurl -plaintext <host>:<port> list; grpcurl -plaintext <host>:<port> describe <svc>List services and methods using server reflection; -plaintext turns off TLS for debugging.
-
pidstat -t -p <pid> 1Show CPU% for each thread to find the hot TID in a busy process before using jstack or perf.