Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Can gpgsm somehow use gpg:s keyring and do the export from there?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.