Verify Signature for deb package OpenSSL C++

I am trying to verify a deb package using OpenSSL C++. The signature was generated using the following Command:

openssl dgst -sign privatekey.pem -keyform PEM -sha256 -out signaturefile.sign -binary package.deb

I am receiving signature in base64 encoding. Can please someone show me how to do it. Also how to convert base64 encoding to appropriate encoding. Thanks in advance

I typed your search phrase into Google and found this potentially useful example

1 Like

Thank you @JeremyLT for reaching out. I tried it also, but it is for text message, and I want to verify a deb package.