TLS cipher and protocol enum

Grade supported TLS versions/ciphers; flags weak/deprecated suites per port

nmap --script ssl-enum-ciphers -p 443 <host>

tool
troubleshooting32 commands
tags
troubleshootingtlssecuritynetwork

More troubleshooting commands

  • openssl s_client -connect <host>:443 -servername <host> -showcerts 2>/dev/null | grep -E 'Verify|s:|i:'

    Show full chain with correct SNI; Verify line catches missing intermediates

  • 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; done

    Loop many hosts to print notAfter dates; pipe to sort for soonest expiry

  • cut -d. -f2 <<<"$JWT" | tr '_-' '/+' | base64 -d 2>/dev/null | jq .

    Decode payload to inspect exp/iss/aud; note: fixes base64url, skips sig check

  • grpcurl -plaintext <host>:<port> list; grpcurl -plaintext <host>:<port> describe <svc>

    Enumerate services/methods over reflection; -plaintext skips TLS for debug

  • pidstat -t -p <pid> 1

    Per-thread CPU%, find the hot TID inside a busy process for jstack/perf

all 32 troubleshooting commands