Re: Signing failed -- "No secret key", even though I have the key

2017-09-24 Thread Kristian Fiskerstrand
On 09/24/2017 05:34 PM, azarus wrote:
> ssb#  rsa4096 2017-06-23 [SE]
> 
> Can somebody explain what I'm doing wrong? 

A combined sign and encrypt capable subkey would be wrong #1, you likely
want to revoke this one and generate separate subkeys for the various
options.

Aditionally, they are stubs, as indicated by the "#"-sign, so not
available on the computer you're executing the signature operation on.

-- 

Kristian Fiskerstrand
Blog: https://blog.sumptuouscapital.com
Twitter: @krifisk

Public OpenPGP keyblock at hkp://pool.sks-keyservers.net
fpr:94CB AFDD 3034 5109 5618 35AA 0B7F 8B60 E3ED FAE3

Nomina stultorum scribuntur ubique locorum
Fools have the habit of writing their names everywhere



signature.asc
Description: OpenPGP digital signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Signing failed -- "No secret key", even though I have the key

2017-09-24 Thread azarus
Hello GPG users,

I have a problem regarding signing data. Whenever I try clear-signing,
this appears:

gpg: writing to stdout
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

hello
gpg: signing failed: No secret key
gpg: [stdin]: clear-sign failed: No secret key

I invoked clearsign like this:

echo "hello" | gpg --sign-with  --clearsign

This is what gpg -K lists:

/home/azarus/.gnupg/pubring.kbx
---
sec   rsa4096 2016-12-20 [SC]
  
uid   [ultimate]  
uid   [ultimate]  
ssb   rsa4096 2016-12-20 [E]
ssb#  rsa4096 2017-06-23 [SE]

Can somebody explain what I'm doing wrong? This was working a couple of
days ago, I even reset my .gnupg directory from a backup, with  no
success.

Thanks for the help!

All the best,

azarus

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users