T
T
trypzz2020-07-14 16:30:20
linux
trypzz, 2020-07-14 16:30:20

Why can't he see the GPG key?

There is a GPG key that was imported into the container:

+ gpg --list-keys
/home/jenkins-slave/.gnupg/pubring.gpg
-------------------- ------------------
pub 4096R/353AE8AA 2020-07-13
uid Admin (Quantum Projects)
sub 4096R/BBDA9A3F 2020-07-13

But when I try to sign the rpm it doesn't see it . What are the possible reasons? rpm --define " _gpg_name

Admin" --addsign $rpms
Enter pass phrase: gpg: skipped "Admin": No secret key
gpg: signing failed: No secret key

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2020-07-15
@trypzz

gpg --list-keys
pub 4096R/353AE8AA 2020-07-13

This is the public key. And the command outputs only public keys. Private keys can be viewed throughgpg --list-secret-keys

when trying to sign rpm it does not see it. What are the possible reasons?
gpg: signing failed: No secret key

Signing requires a private key, which is what gpg says.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question