- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.
03-21-2022 01:07 PM
Hi Warriors! Kevin here from Venafi coming at you tackling the latest recent issue. I look for the most common issues and answer them in the Venafi Warrior Community so you can get help even faster.
Today I am sharing knowledge from the customer support team on some helpful ways to troubleshoot your Code Sign Protect signing operations when using rpm. RPM Package Manager is bundled with some versions of Linux distributions of AmzLinux, CentOS 7, and others.
Summary:
Venafi Code Signing operations can be used for signing with rpm. However, some additional configuration may be necessary in order to be sure rpm works as expected.
More Info:
Older versions of rpm always prompt for a password even if there is no password configured for the gpg key being used. If you have not configured a password, you can simply hit enter to proceed without entering any information for the password.
This is because rpmsign.c directly calls the getpass() function, and there is no way to bypass this. This behavior is corrected in newer versions of rpm.
By default, macros for gpg are hard coded to /usr/bin/gpg2, and they will need to be adjusted. Create file ~/.rpmmacros with contents as follows:
%_signature gpg
%_gpg_name [email protected]
%__gpg /home/myexampleuser/lean-static-gpg/gnupg/bin/gpg
%__gpg_sign_cmd %\{__gpg} gpg --batch --no-verbose --force-v3-sigs --no-armor --no-secmem-warning -u "%\{_gpg_name}" -sbo %\{__signature_filename} %\{__plaintext_filename}
3. With this in place, you can sign as expected:
rpmsign --addsign mypackage.rpm
Again, if using an older version of rpm like those bundled in AmzLinux2 or CentOS 7, rpm will prompt for a pass phrase whether or not one is in place. You can simply hit enter and proceed as normal.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

