View Full Version : [ubuntu] Problem with PGP encryption and secret key

July 18th, 2011, 07:36 PM

I have a problem using PGP encryption.
I am running Windows 7 operating system.

I have PGP working perfectly fine when running manually through DOS mode (cmd.exe):
gpg -ase --always-trust --batch --passphrase myphrase --output c:\testdir\testfile.csv.pgp -r someword c:\testdir\testfile.csv

Now the problem happens when I am trying to run same script in Perl in the browser (Perl + IIS are installed locally on my PC).
The error I am getting is: gpg: no default secret key: No secret key gpg: C:\\testdir\\testfile.csv: sign+encrypt failed: No secret key

From what I understand, the secret key is created under my user profile. IIS runs under some default user name, so it does not see the secret key.

I am not sure how to solve this problem.

Does anyone have an idea how to resolve this?

Thank you,

July 20th, 2011, 12:23 PM
Ask in a Windows forum?