Im new to PGP and I'm trying to generate a PGP private key using GnuPG through this tutorial.
Basically, I have type the following command in command prompt (in administrator mode):
gpg --gen-key
Then I entered the command:
gpg --armor --output pubkey.txt --export 'Encryption purpose'
but get a
WARNING: nothing exported
message.
Can someone tell me what I'm doing wrong?
Also, I will be using PGP to encrypt a webapp download file. I'm planning to create a web application that will generate a file with random numbers that would need be encrypted (in PGP). Then to decrypt, I'm planning to create a stand alone application that will decrypt the file using the private key. So my question is:
Is it possible to extract the private key from the original computer in which the private key was generated to be used with other computers so that other computers could also use the standalone application to decrypt the file using the private key from the original computer?
If this is not possible, how do I share the private key for all computers with the decrypting standalone application (because as I understand, standalone application needs 'a' private key to decrypt the file)? Should I use multiple private keys? How to implement?