1. Create file /root/.rpmmacros in user's home directory and add the following content in it
|
›_ Console |
|---|
|
Content of rpmmacros file
Here:
-
/root/.gnupgis the base directory for gnupg -
test@utimaco.com is the key name
-
/usr/local/bin/gpgis the path for gpg -
%{_gpg} gpg --force-v3-sigs --batch --verbose --no-armor --no-secmem-warning -u "%{_gpg_name}" -sbo %{_signature_filename} --digest-algo filename}is the gpg command that will be used for signing rpm
-
Sign the file using below command
|
›_ Console |
|---|
|
Provide the slot PIN when prompted.
-
If you want to sign it again then run the below command. Provide the slot PIN when prompted.
|
›_ Console |
|---|
|
Resigning the rpm file