I'm writing SW that uses opessl library for verifying DSA signatures. I have public keys from senders in gpg format. How can I convert those into .pem so that openssl can read them?
I found this from another thread:
gpgsm -o secret-key.p12 --export-secret-key-p12 0xXXXXXXXX
To do the export I need to have the keys in gpgsm keyring don't I? I just can't figure out how to import my keys into the keyring gpgsm is using. I end up with errors:
gpgsm --import public.asc gpgsm: total number processed: 0 gpgsm: error importing certificate: End of file
gpgsm somehow use gpg:s keyring and do the export from there?