|
|
|
|
|
by gt99
3821 days ago
|
|
function openssl-key-to-pin() {
openssl rsa -in "${1}" -outform der -pubout | openssl dgst -sha256 -binary | openssl enc -base64
} function openssl-website-to-pin() {
openssl s_client -connect ${1}:443 | openssl x509 -pubkey -noout | openssl rsa -pubin -outform der | openssl dgst -sha256 -binary | openssl enc -base64
} |
|