Can't use GPG key - secret key not available

Madhusudan Singh singh.madhusudan at gmail.com
Wed Jan 5 19:08:44 CET 2011


Hello David,

Thanks.

I am not using this key for any email program.

I am using it to sign and encrypt my backups.

I do have a key pair (I think - I followed instructions from the gpg home
page):

$gpg --list-keys
pub   4096R/F784A849 2010-09-29
uid                  Madhusudan Singh <singh.madhusudan at gmail.com>
sub   4096R/BB9A877C 2010-09-29

$gpg --list-secret-keys
sec   4096R/F784A849 2010-09-29
uid                  Madhusudan Singh <singh.madhusudan at gmail.com>
ssb   4096R/BB9A877C 2010-09-29

I am not really a gpg expert, but those two above came from pubring.gpg and
secring.gpg, respectively.

I have tried revoking, deleting and regenerating new keys many times, but it
has not worked.


On Tue, Jan 4, 2011 at 2:35 PM, david at gbenet.com <david at gbenet.com> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> Well for a start you failed to create a key pair - that is a private and
> public key. What I
> suggest you do is to uninstall and start over.
>
> You will also need to install thunderbird email programme and add enigmail
> via addons. Once
> you have these installed then you need to reinstall gpg.
>
> If you can do that I will help you complete the rest of the setup.
>
> David
>
>
> Madhusudan Singh wrote:
> > I had given up on this last year but want to make the key signing work
> > again.
> >
> > I still have the same error:
> >
> > GPG error detail: Traceback (most recent call last):
> > ��File "/opt/local/bin/duplicity", line 1245, in <module>
> > �� �with_tempdir(main)
> > ��File "/opt/local/bin/duplicity", line 1238, in with_tempdir
> > �� �fn()
> > ��File "/opt/local/bin/duplicity", line 1211, in main
> > �� �full_backup(col_stats)
> > ��File "/opt/local/bin/duplicity", line 417, in full_backup
> > �� �globals.backend)
> > ��File "/opt/local/bin/duplicity", line 295, in write_multivol
> > �� �globals.gpg_profile, globals.volsize)
> > ��File
> >
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/duplicity/gpg.py",
> > line 283, in GPGWriteFile
> > �� �file.write(data)
> > ��File
> >
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/duplicity/gpg.py",
> > line 153, in write
> > �� �self.gpg_failed()
> > ��File
> >
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/duplicity/gpg.py",
> > line 165, in gpg_failed
> > �� �raise GPGError, msg
> > GPGError: GPG Failed, see log below:
> > ===== Begin GnuPG log =====
> > gpg: no default secret key: secret key not available
> > gpg: [stdin]: sign+encrypt failed: secret key not available
> > ===== End GnuPG log =====
> >
> >
> > GPGError: GPG Failed, see log below:
> > ===== Begin GnuPG log =====
> > gpg: no default secret key: secret key not available
> > gpg: [stdin]: sign+encrypt failed: secret key not available
> > ===== End GnuPG log =====
> >
> > Any ideas?
> >
> > On Fri, Oct 1, 2010 at 5:01 PM, Charly Avital <shavital at mac.com
> > <mailto:shavital at mac.com>> wrote:
> >
> >     Madhusudan Singh wrote the following on 10/1/10 2:35 PM:
> >     > Tried this.
> >     >
> >     > No use.
> >     >
> >     > I have two keys installed on this machine (different email
> addresses).
> >     > It just can't seem to use the newer one, regardless of the
> default-key
> >     > parameter.
> >     >
> >     > Do I have to restart start-gpg-agent on Mac ? If so, how do I
> restart
> >     > without rebooting ?
> >
> >     I am not familiar with duplicity backup to S3.
> >
> >     I don't know whether restarting gpg-agent will help (without
> rebooting),
> >     but try this.
> >
> >     Locate start-gpg-agent.app (it is, in fact, an application) and
> double
> >     click on it.
> >
> >     Another factor comes to mind. Have you signed your "new" key with the
> >     "old" one? It is just possible (I am speculating) that the systems
> does
> >     not recognize your new key because it has not been authenticated with
> >     your default key.
> >
> >     Best regards,
> >     Charly
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Gnupg-users mailing list
> > Gnupg-users at gnupg.org
> > http://lists.gnupg.org/mailman/listinfo/gnupg-users
>
> - --
> “See the sanity of the man! No gods, no angels, no demons, no body. Nothing
> of the kind.
> Stern, sane,every brain-cell perfect and complete even at the moment of
> death. No delusion.”
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iQEcBAEBAgAGBQJNI4R4AAoJEOJpqm7flRExbdoH/28enkxycTkjtQXlu7EEl9jE
> qneHGqI5T5Y28fg0LdlEFJtqnp2gaD8eBZkc+PC/uuHh0+N83B84FqD1Phr+5I8n
> 37LEa9pdH5QBw/nAs3yzL7aT8PRioyHGgDnS0CTnurk/Fd1y7JUNgc0oV4r32jxt
> kjggrLnA18Q5AvllFN7PmCifXmpakqhsOst3XmCzl4fckMXWeeGfcoUsEM4QjhC9
> HMLAKgxTie363nEexX5I4ZAaNFygcLiBoGh9hrUanQzlOl7Fr0y0XXU115coO+On
> z4sqI95uFeU9GDDX0r6+cTVbrzjiVORHUJJPDENAEzWI8KpMndAaXU5R6e6ySSM=
> =dvBO
> -----END PGP SIGNATURE-----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20110105/4500aac8/attachment-0001.htm>


More information about the Gnupg-users mailing list