RPMSIGN(8) | RPMSIGN(8) |
rpmsign - RPM Package Signing
rpmsign --addsign|--resign [rpmsign-options] PACKAGE_FILE ...
rpmsign --delsign PACKAGE_FILE ...
rpmsign --delfilesign PACKAGE_FILE ...
[--rpmv3] [--fskpath KEY] [--signfiles]
Both of the --addsign and --resign options generate and insert new signatures for each package PACKAGE_FILE given, replacing any existing signatures. There are two options for historical reasons, there is no difference in behavior currently.
To create a signature rpmsign needs to verify the package's checksum. As a result packages with a MD5/SHA1 checksums cannot be signed in FIPS mode.
rpmsign --delsign PACKAGE_FILE ...
Delete all signatures from each package PACKAGE_FILE given.
rpmsign --delfilesign PACKAGE_FILE ...
Delete all IMA and fsverity file signatures from each package PACKAGE_FILE given.
In order to sign packages, you need to create your own public and secret key pair (see the GnuPG manual). In addition, rpm must be configured to find GnuPG and the appropriate keys with the following macros:
For example, to be able to use GnuPG to sign packages as the user "John Doe <jdoe@foo.com>" from the key rings located in /etc/rpm/.gpg using the executable /opt/bin/gpg you would include
%_gpg_path /etc/rpm/.gpg %_gpg_name John Doe <jdoe@foo.com> %__gpg /opt/bin/gpg
in a macro configuration file, typically ~/.config/rpm/macros. See Macro Configuration in rpm(8) for more details.
popt(3), rpm(8), rpmdb(8), rpmkeys(8), rpm2cpio(8), rpmbuild(8), rpmspec(8)
rpmsign --help - as rpm supports customizing the options via popt aliases it's impossible to guarantee that what's described in the manual matches what's available.
http://www.rpm.org/ <URL:http://www.rpm.org/>
Marc Ewing <marc@redhat.com> Jeff Johnson <jbj@redhat.com> Erik Troan <ewt@redhat.com> Panu Matilainen <pmatilai@redhat.com> Fionnuala Gunter <fin@linux.vnet.ibm.com> Jes Sorensen <jsorensen@fb.com>
Red Hat, Inc |