It still gives same error. I added '--homedir DIR ' in command.
 

echo paraphrase|gpg.exe --homedir DIR --batch  --secret-keyring temporary  
--passphrase-fd 0 --decrypt-files E:\a.txt.gpg

gpg: keyblock resource `DIR/secring.gpg': No such file or directory
gpg: keyblock resource `DIR/temporary': No such file or directory
gpg: keyblock resource `DIR/pubring.gpg': No such file or directory
gpg: encrypted with RSA key, ID XXXXX
gpg: encrypted with RSA key, ID YYYY
gpg: decryption failed: No secret key


--- On Mon, 5/7/12, Werner Koch <[email protected]> wrote:


From: Werner Koch <[email protected]>
Subject: Re: secret key not found
To: "Rupali Chitre" <[email protected]>
Cc: "Hauke Laging" <[email protected]>, [email protected]
Date: Monday, May 7, 2012, 2:53 PM


On Mon,  7 May 2012 18:54, [email protected] said:
> It gives below error. Why it is looking in 'C:/Documents and
> Settings/Default User/Application'?  Can someone help on this?

Because that is the correct directory as told by your Windows version
(by means of CSIDL_APPDATA) or configured by you:

  --homedir DIR

  Set the name of the home directory to DIR. If this option is not used,
  the home directory defaults to '~/.gnupg'.  It is only recognized when
  given on the command line.  It also overrides any home directory
  stated through the environment variable 'GNUPGHOME' or (on W32
  systems) by means of the Registry entry
  'HKCU\Software\GNU\GnuPG:HomeDir'.


Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.

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

Reply via email to