Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: GnuPG: users

secret key not found

 

 

GnuPG users RSS feed   Index | Next | Previous | View Threaded


rychitre at yahoo

May 4, 2012, 12:18 PM

Post #1 of 9 (950 views)
Permalink
secret key not found

I am trying to decrypt file from command prompt as below and it works fine.
echo paraphase|gpg --batch --passphrase-fd 0 --decrypt-files *data*.txt.gpg
 

But the same command when I call from application (Informatica), it gives below error.
>>gpg: encrypted with RSA key, ID AAAAAA
    gpg: decryption failed: No secret key



Is that I need to give some other details ?


mailinglisten at hauke-laging

May 4, 2012, 3:48 PM

Post #2 of 9 (929 views)
Permalink
Re: secret key not found [In reply to]

Am Fr 04.05.2012, 12:18:40 schrieb Rupali Chitre:

> But the same command when I call from application (Informatica), it gives
> below error.
> >>gpg: encrypted with RSA key, ID AAAAAA
>
> gpg: decryption failed: No secret key

Does the application run under the same user ID or in a chroot environment?


Hauke
--
PGP: D44C 6A5B 71B0 427C CED3 025C BD7D 6D27 ECCB 5814
Attachments: signature.asc (0.54 KB)


rychitre at yahoo

May 7, 2012, 9:54 AM

Post #3 of 9 (923 views)
Permalink
Re: secret key not found [In reply to]

It gives below error. Why it is looking in 'C:/Documents and Settings/Default User/Application'?  Can someone help on this?
 
gpg: keyblock resource `C:/Documents and Settings/Default User/Application Data/gnupg/temporary': No such file or directory
gpg: encrypted with RSA key, ID XXXXX
gpg: encrypted with RSA key, ID YYYYY
gpg: decryption failed: No secret key


--- On Sat, 5/5/12, Rupali Chitre <rychitre [at] yahoo> wrote:


From: Rupali Chitre <rychitre [at] yahoo>
Subject: Re: secret key not found
To: "Hauke Laging" <mailinglisten [at] hauke-laging>
Date: Saturday, May 5, 2012, 10:28 PM






Application runs under different user id. What is chroot? It is windows environment.

--- On Fri, 5/4/12, Hauke Laging <mailinglisten [at] hauke-laging> wrote:


From: Hauke Laging <mailinglisten [at] hauke-laging>
Subject: Re: secret key not found
To: gnupg-users [at] gnupg
Date: Friday, May 4, 2012, 6:48 PM


Am Fr 04.05.2012, 12:18:40 schrieb Rupali Chitre:

> But the same command when I call from application (Informatica), it gives
> below error.
> >>gpg: encrypted with RSA key, ID AAAAAA
>
>     gpg: decryption failed: No secret key

Does the application run under the same user ID or in a chroot environment?


Hauke
--
PGP: D44C 6A5B 71B0 427C CED3 025C BD7D 6D27 ECCB 5814
-----Inline Attachment Follows-----


_______________________________________________
Gnupg-users mailing list
Gnupg-users [at] gnupg
http://lists.gnupg.org/mailman/listinfo/gnupg-users
It runs with


wk at gnupg

May 7, 2012, 11:53 AM

Post #4 of 9 (922 views)
Permalink
Re: secret key not found [In reply to]

On Mon, 7 May 2012 18:54, rychitre [at] yahoo 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
Gnupg-users [at] gnupg
http://lists.gnupg.org/mailman/listinfo/gnupg-users


rychitre at yahoo

May 7, 2012, 3:08 PM

Post #5 of 9 (922 views)
Permalink
Re: secret key not found [In reply to]

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 <wk [at] gnupg> wrote:


From: Werner Koch <wk [at] gnupg>
Subject: Re: secret key not found
To: "Rupali Chitre" <rychitre [at] yahoo>
Cc: "Hauke Laging" <mailinglisten [at] hauke-laging>, Gnupg-users [at] gnupg
Date: Monday, May 7, 2012, 2:53 PM


On Mon,  7 May 2012 18:54, rychitre [at] yahoo 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.


wk at gnupg

May 8, 2012, 2:31 AM

Post #6 of 9 (923 views)
Permalink
Re: secret key not found [In reply to]

On Tue, 8 May 2012 00:08, rychitre [at] yahoo said:

> 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

I suggest that you import the keys first. Why do you define a second
secret keyring (temporary) which does not exists?

You may also want to read one of the HOWTO documents at
http://gnupg.org/documentation/howtos.en.html first.


Shalom-Salam,

Werner


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


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


peter at digitalbrains

May 8, 2012, 3:12 AM

Post #7 of 9 (922 views)
Permalink
Re: secret key not found [In reply to]

On 08/05/12 00:08, Rupali Chitre wrote:
> 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

Are you literally entering DIR? Because it was intended to be an indicator that
that is the place you should place the wanted directory name, as in for example[1]:

--homedir "C:\Documents and Settings\Rupali\Application Data"

or something similar.

Peter.

[1] I don't use Windows, so I might make a mistake in syntax or actual directory
names or something like that

--
I use the GNU Privacy Guard (GnuPG) in combination with Enigmail.
You can send me encrypted mail if you want some privacy.
My key is available at http://wwwhome.cs.utwente.nl/~lebbing/pubkey.txt

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


rychitre at yahoo

May 8, 2012, 6:48 AM

Post #8 of 9 (922 views)
Permalink
Re: secret key not found [In reply to]

I am running simple command 'gpg --decrypt E:\a.txt.gpg'. It runs successfully from command prompt, but when I run from application it gives below error. Why it is saying
'No secret key'. How to fix this? It is the same environment.
gpg: encrypted with RSA key, ID BA041825
gpg: decryption failed: No secret key

--- On Tue, 5/8/12, Peter Lebbing <peter [at] digitalbrains> wrote:


From: Peter Lebbing <peter [at] digitalbrains>
Subject: Re: secret key not found
To: "Rupali Chitre" <rychitre [at] yahoo>
Cc: Gnupg-users [at] gnupg
Date: Tuesday, May 8, 2012, 6:12 AM


On 08/05/12 00:08, Rupali Chitre wrote:
> 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

Are you literally entering DIR? Because it was intended to be an indicator that
that is the place you should place the wanted directory name, as in for example[1]:

--homedir "C:\Documents and Settings\Rupali\Application Data"

or something similar.

Peter.

[1] I don't use Windows, so I might make a mistake in syntax or actual directory
names or something like that

--
I use the GNU Privacy Guard (GnuPG) in combination with Enigmail.
You can send me encrypted mail if you want some privacy.
My key is available at http://wwwhome.cs.utwente.nl/~lebbing/pubkey.txt


rychitre at yahoo

May 8, 2012, 9:08 AM

Post #9 of 9 (922 views)
Permalink
Re: secret key not found [In reply to]

After importing keys, I am able to decrypt files. Thanks a lot.

--- On Tue, 5/8/12, Werner Koch <wk [at] gnupg> wrote:


From: Werner Koch <wk [at] gnupg>
Subject: Re: secret key not found
To: "Rupali Chitre" <rychitre [at] yahoo>
Cc: Gnupg-users [at] gnupg
Date: Tuesday, May 8, 2012, 5:31 AM


On Tue,  8 May 2012 00:08, rychitre [at] yahoo said:

> 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

I suggest that you import the keys first.  Why do you define a second
secret keyring (temporary) which does not exists?

You may also want to read one of the HOWTO documents at
http://gnupg.org/documentation/howtos.en.html first.


Shalom-Salam,

   Werner


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

GnuPG users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.