Add zsh func to print ssl cert

This commit is contained in:
don philipe
2026-08-11 09:35:41 +02:00
parent 0b39cde596
commit a65784223d
+4
View File
@@ -21,6 +21,10 @@ checkcert()
{ {
openssl s_client -connect "$1":443 2>/dev/null openssl s_client -connect "$1":443 2>/dev/null
} }
showcert()
{
openssl x509 -in "$1" -noout -text
}
pem2crt() pem2crt()
{ {
openssl x509 -inform PEM -in "$1" -out "${1%.*}.crt" openssl x509 -inform PEM -in "$1" -out "${1%.*}.crt"