Aug 22, 2018, 8:10:31 AM8/22/18
I am trying to code following openssl commandline in C++
Can somebody share the snippet for the same
# convert public key from pem to der
openssl asn1parse -noout -inform pem -in www.example.com.pubkey.pem -out www.example.com.pubkey.der
# sha256 hash and base64 encode der to string for use
openssl dgst -sha256 -binary www.example.com.pubkey.der | openssl base64
I need sha256 base64 encoded has for publickey.