If your QA environment is on a different server from the Production environment, then you will need to import the private key to your QA box. The keys are usually in the users home directory in a hidden folder, most likely /~/.pgp
you have to create the keypair in your QA.. or if you want to use the same key pair as your PRD, then export/import it to QA. if you can create a new keypair in qa. you can use
pgp --key-gen
and follow the steps.
a pair of public and private keys will be created.
the below command will give you all the key that are present in your server.
pgp --key-list
to check a single key use
pgp --key-list <USER_ID>
After you create your keys, you need to make them available to others so that
they can send you encrypted information and verify your digital signature.
Export your public key to a file.
To export your key to a file,which you can then freely distribute to others, use
the --key-export option.
pgp --key-export <userID> --output <key_filename>
This exports the public portion of your key.
after exporting the public key.. you need to add the key to your keyring
pgp --key-add <key_filename>
this is the public key that you have exported.
am i clear in explaining?? if any doubts please reply.
The problem is that it is working in Prod, so I cannot generate new keys.
I need to move the keys from Prod to QA, but am unsure where I would find them in Prod and where I need to move in QA. Strangely the user that is used to run the scripts does not have a home directory in Prod.