Last active
December 25, 2020 01:28
-
-
Save hnakamur/3da0ba4bfb74b896f375bd8e658e8772 to your computer and use it in GitHub Desktop.
rpm sign
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The original settings confirmed by running: rpm --showrc | |
# -14: __gpg %{_bindir}/gpg2 | |
# -14: __gpg_check_password_cmd %{__gpg} | |
# gpg --batch --no-verbose --passphrase-fd 3 -u "%{_gpg_name}" -so - | |
# | |
# -14: __gpg_sign_cmd %{__gpg} | |
# gpg --batch --no-verbose --no-armor --passphrase-fd 3 | |
# %{?_gpg_digest_algo:--digest-algo %{_gpg_digest_algo}} | |
# --no-secmem-warning | |
# -u "%{_gpg_name}" -sbo %{__signature_filename} %{__plaintext_filename} | |
%_gpg_name [email protected] | |
%__gpg_check_password_cmd /bin/true | |
%__gpg_sign_cmd %{__gpg} \ | |
gpg --batch --no-verbose --no-armor \ | |
--passphrase-file /home/admin/rpmsign-work/passphrase \ | |
%{?_gpg_digest_algo:--digest-algo %{_gpg_digest_algo}} \ | |
--no-secmem-warning \ | |
-u "%{_gpg_name}" -sbo %{__signature_filename} %{__plaintext_filename} |
Thanks so much for this, I've been struggling with this!
I'm glad it helped!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
_gpg_name
and the filename for--passphrase-file
for your environments