#!/bin/bashAbspeichern z.B. als checkSSLCert.sh in /usr/bin
echo | openssl s_client -servername "$1" -connect "$1":443 2>/dev/null | openssl x509 -noout -issuer -dates -subject
chmod +x /usr/bin/checkSSLCert
Aufruf
checkSSLCert [Domain]
Keys checken:
echo "--Certificate:" && openssl x509 -noout -modulus -in certificate_file && echo "--Key:" && openssl rsa -noout -modulus -in private_key
Keine Kommentare:
Kommentar veröffentlichen