Sep 21, 2018

Encrypt with a symmetric cipher using a passphrase by gpg

encryption:
gpg -e -c hdgem.pem
decryption:
$ gpg -d  --output hdgem.pem  hdgem.pem.gpg
Or
$ gpg -d  -o hdgem.pem  hdgem.pem.gpg