16 lines
435 B
Bash
16 lines
435 B
Bash
function check_cert {
|
|
curl --insecure -v https://$1 2>&1 | awk 'BEGIN { cert=0 } /^\* SSL connection/ { cert=1 } /^\*/ { if (cert) print }'
|
|
}
|
|
|
|
function cert_fingerprint {
|
|
openssl s_client -connect $1 |& openssl x509 -fingerprint -noout | awk -F '=' '{print $2}' | sed -e 's/://g' | tr [:upper:] [:lower:]
|
|
}
|
|
|
|
function vman {
|
|
vim <(man $1);
|
|
}
|
|
|
|
function cpu {
|
|
ps -Ao user,comm,pid,pcpu,pmem,rss --sort=-pcpu | head -n 6
|
|
}
|