Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Converting .asc back to .gpg

I normally wouldn't ask but I can't find the answer on SO or google.

I'm using a library that accepts base64 encoded pgp public keys in string format. However, one of the components I need to convert has a key in .asc format. How can I convert it back to binary-pgp or base64-gp.

Sorry if it's really dumb question, I'm new to the pgp toolsets.

Thanks a lot!

Shane

like image 886
ShaneK Avatar asked Dec 12 '25 16:12

ShaneK


1 Answers

Turns out it's really simple:

gpg --dearmor file.asc

Source: https://lists.gnupg.org/pipermail/gnupg-devel/2011-October/026253.html

like image 165
ShaneK Avatar answered Dec 16 '25 22:12

ShaneK



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!