spkifp for remote host
openssl s_client -connect $1 </dev/null | \
openssl x509 -noout -pubkey | \
openssl asn1parse -inform pem -noout -out - | \
openssl dgst -sha256 -binary | \
openssl enc -base64
spkifp for remote host
openssl s_client -connect $1 </dev/null | \
openssl x509 -noout -pubkey | \
openssl asn1parse -inform pem -noout -out - | \
openssl dgst -sha256 -binary | \
openssl enc -base64