How to write code for for openssl commandline

28 views
Skip to first unread message

mangesh....@gmail.com

unread,
Aug 22, 2018, 8:10:31 AM8/22/18
to
Hi,

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.

Thanks,
Mangesh

Goku Zeus

unread,
Jun 21, 2023, 7:23:32 AMJun 21
to
Our journey began with a mission to deliver valuable content and comprehensive information about the fascinating world of cryptocurrencies.
https://cryptomarketingguide.com/

Robert Rodriguez

unread,
Jun 26, 2023, 7:45:47 AMJun 26
to
At Digital Surface, we offer competitive pricing packages tailored to meet the diverse needs and budgets of businesses in Islamabad.
https://digital-surface.com/

Rose J

unread,
Jun 26, 2023, 3:12:33 PMJun 26
to
To write code for the OpenSSL command-line utility, you can use a scripting language such as Bash or Python. Below, I'll provide examples using both languages to demonstrate how you can interact with OpenSSL from your code.

https://garagedoorsrepairfranklin.com/garage-door-replacement/
Reply all
Reply to author
Forward
0 new messages