This is what I get when I type command to sign the Code of conduct for Launchpad.

clearsign failed: secret key not available

I followed steps from Launchpad but didn't get the confirmation e-mail from the launchpad servers, after uploading the key. That seems to be the missing bone here but I thought I could sign it with out those instructions.

This is all I am doing :

gpg --clearsign ./UbuntuCodeofConduct-2.0.txt
gpg: no default secret key: secret key not available
gpg: ./UbuntuCodeofConduct-2.0 (1).txt: clearsign failed: secret key not available

Launchpad instructs to do this but also as I said before it also said I would get an e-mail which I cannot find.

Also when I do :

gpg --fingerprint

I get no output.

share|improve this question
4  
Can you please include all steps you performed and the exact commands with their outputs to your question? It's very unclear what happened without that information. – Byte Commander Jul 14 '16 at 12:37
4  
The error message you're seeing means that gpg was unable to sign with your default key pair. Either you have no key pair, your default key pair has no private key, or it's a bug of some kind. Have a look at the GPG guide for launchpad and make sure you have everything set up correctly: help.launchpad.net/YourAccount/… – Stefano Palazzo Jul 14 '16 at 13:07
    
I added the Key ID to the /home/gnupg/gpg.conf before asking here, I tried all that is logical to try. – userDepth Jul 14 '16 at 20:03
    
What's the output of gpg --list-secret-keys? If it's empty you need to create or import a secret key (e. g. as per the instructions in Stefano's link). – David Foerster Jul 18 '16 at 6:19
    
@DavidFoerster My lauchpad account shows two keys and an ssh key. I'm using MATE – userDepth Jul 18 '16 at 13:25
up vote 0 down vote accepted

First use Seahorse to export an ASC file.

Get the ID number for the key in the Seahorse program by click on the Key and choosing properties

Go to the ASC file's directory inside a terminal an do

gpg --import **keyname**.asc

Provide the passphrase

Now sign the Ubuntu code of conduct by providing the Key ID

gpg --clearsign --default-key **KEY_ID** UbuntuCodeofConduct-2.0.txt

Go to the signing page where the Launchpad platform will ask to paste the contents of the resulting signed key.

It will be the name as the original file but end with ASC extention.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.