ssl lib has been added

This commit is contained in:
Sameer Rahmani 2018-02-16 16:25:41 +00:00
parent 3b79969fa4
commit a6bc66a028
1 changed files with 7 additions and 0 deletions

7
lib/ssl.zsh Normal file
View File

@ -0,0 +1,7 @@
function cert_fingerprint() {
openssl s_client -connect $1:443 </dev/null | openssl x509 -fingerprint -noout
}
function cert_info() {
openssl s_client -connect $1:443 -servername $1 </dev/null | openssl x509 -noout -text
}