[prev in list] [next in list] [prev in thread] [next in thread]
List: rpmorg-list
Subject: rpmsign with a non-default-keyring didn't work
From: Daniel Spannbauer <ds () marco ! de>
Date: 2020-11-09 15:25:37
Message-ID: cf14fb87-e3a2-4f9b-fe50-c0ad632a1799 () marco ! de
[Download RAW message or body]
Hello,
I have try to sign packages with a key from a no-default-keystore, which
is temporarily created.
Bit I can't find the secret key, but it is definitly there.
I created my .rpmmacros with:
-----------------------------------------------------------------------------------------------------------------
%_gpg_name 5F8C177886634769
%_gpg_path /tmp/tmp.ombe7lRySW
%__gpg_sign_cmd %{__gpg} \
--yes --no-default-keyring --no-armor --batch \
--passphrase-file /mnt/home/sw/.gpg-passphrase --pinentry-mode
loopback \
%{?_gpg_sign_cmd_extra_args:%{_gpg_sign_cmd_extra_args}} \
%{?_gpg_digest_algo:--digest-algo %{_gpg_digest_algo}} \
--no-secmem-warning --keyring=/tmp/tmp.ombe7lRySW/pubring.gpg \
-u %{_gpg_name} -sbo %{__signature_filename} %{__plaintext_filename}
-----------------------------------------------------------------------------------------------------------------
A "gpg --no-default-keyring -keyring /tmp/tmp.ombe7lRySW/pubring.gpg
--list-secret-keys" list the key:
-----------------------------------------------------------------------------------------------------------------
/tmp/tmp.ombe7lRySW/pubring.gpg
-------------------------------
sec rsa2048 2017-07-17 [SC] [expires: 2022-07-16]
8FCDB9E00762462B64BBC3AB5F8C177886634769
uid [ unknown] marco GmbH <sw@marco.de>
ssb rsa2048 2017-07-17 [E] [expires: 2022-07-16]
-----------------------------------------------------------------------------------------------------------------
But when I call rpmsign:
-----------------------------------------------------------------------------------------------------------------
ds@morbo rpmsign --addsign xxx-release-master.suse148-beta.x86_64.rpm
xxx-release-master.suse148-beta.x86_64.rpm:
gpg: skipped "5F8C177886634769": No secret key
gpg: signing failed: No secret key
-----------------------------------------------------------------------------------------------------------------
Any idea what I'm doing wrong? or is it a bug from rpmsign?
Regards
Daniel
--
Daniel Spannbauer Systemadministration
marco Systemanalyse und Entwicklung GmbH Tel +49 8333 9233-27 Fax -11
Rechbergstr. 4-6, D 87727 Babenhausen Mobil +49 171 4033220
http://www.marco.de/ Email ds@marco.de
Geschäftsführer Martin Reuter HRB 171775 Amtsgericht München
_______________________________________________
Rpm-list mailing list
Rpm-list@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic