blob: 81bd07d0f194a93268d76487049c9eb3075deddd (
plain)
1
2
3
4
|
#!/bin/bash
hash=$(sed -n '/-----BEGIN/,/-----END/p' | openssl x509 -noout -pubkey | openssl rsa -noout -pubin -outform DER | openssl dgst -sha256 -binary | openssl enc -base64)
echo "sha256//$hash"
|