soukoku / PgpSharp

Some pgp stuff in C#
MIT License
14 stars 5 forks source link

Keyring/KeyringFolder issues #7

Open cgtyoder opened 8 years ago

cgtyoder commented 8 years ago

I am trying to get a simple test for decrypting a file, but consistently getting the error "gpg: decryption failed: No secret key".

For the property GnuPGTool.KeyringFolder, what is the "default" folder? What file format is the lib expecting to see the private key in, for decryption?

soukoku commented 8 years ago

If not specified, it should be the same default folder and format as when you run gpg2.exe from the command line (under %appdata%\gnupg).

I never changed it myself so I don't have the problem but this stackoverflow question may be relevant.

cgtyoder commented 8 years ago

that worked - specifically the file privateKey.asc (which of course contains the PGP Private Key)