Posts Tagged ‘GPG’

Encrypted email script using GPG and PHP

#First grab the public key into a file for the GPG enabled email address and import it into a new keyring called public_key.gpg mkdir .gnupg to add the keyring files.  Probably outside httpdocs would be a good idea! gpg –no-default-keyring –keyring /var/www/vhosts/secure.mydomain.com/httpsdocs/mydomain.com/.gnupg/public_key.gpg  –import public_key #you can list keys in the keyring by: gpg –no-default-keyring –keyring […]