Hi, 
Thanks for the info, that makes sense. 

That does however mean that I will end up with two sets of keyring
files,
does anyone know a way to share them to certain priv'd users on a
server. 

Regards
Dave 


-----Original Message-----
From: Robert Hill [mailto:[email protected]] 
Sent: 30 October 2009 14:43
To: David Gray
Subject: RE: No secret key under different account

Logon to the server as the account you wish to use to encrypt the files.
Import public key as you did prior and sign the key as you did prior.
This worked for me.  I am not in my office, but there are 2 command line
steps that need to be done, on is import and the other I think is sign.
It appears that each user that is to encrypt has to follow this
procedure.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of David Gray
Sent: Friday, October 30, 2009 10:25 AM
To: [email protected]
Subject: No secret key under different account

Hello all, 

GPG 2.0.12
Windows Server 2003  



I've written a C# application which scans for input files and decrypts
using GPG. 
This applications works fine when run under the account (Administrator)
that GPG was installed under but when run from a different account
(SQLService) I get this error. 

gpg: encrypted with ELG key, ID 891AB7E7  gpg: decryption failed: No
secret
key    
Error Decrypting C:\Program
Files\GNU\GnuPG\work\KLIOLB_20091002_11235900.PGP

I've given full permissions to the SQLService account. 

Are there any permissions I need to set within GPG or do I need to
specify anything else on the command line when running under a different
account? 

The GPG command looks like this

gpg --passphrase-fd 0 --batch --output KLIOLB_20091005_10021900.TMP
--decrypt KLIOLB_20091005_10021900.PGP

Thanks in advance. 

Dave  





Registered Office: Turpin Distribution Services Ltd, Pegasus Drive, Stratton 
Business Park, Biggleswade, Bedfordshire, SG18 8TQ, UK. ***** Registered in 
England No. 1331778 ***** This email may contain confidential information 
and/or copyright material. This email is intended for the use of the addressee 
only. Any unauthorised use may be unlawful. If you receive this email by 
mistake, please advise the sender immediately by using the reply facility in 
your email software.

_______________________________________________
Gnupg-users mailing list
[email protected]
http://lists.gnupg.org/mailman/listinfo/gnupg-users

Reply via email to