RPM cannot be signed with V4 signature only in Red Hat Enterprise Linux 8

Solution Verified - Updated -

Issue

# rpm -Kv /root/rpmbuild/RPMS/x86_64/custom-1.0-1.el8.x86_64.rpm
/root/rpmbuild/RPMS/x86_64/custom-1.0-1.el8.x86_64.rpm:
    Header V4 RSA/SHA256 Signature, key ID 47fca7e4: OK   <<=== for Header
    Header SHA256 digest: OK
    Header SHA1 digest: OK
    Payload SHA256 digest: OK
    V4 RSA/SHA256 Signature, key ID 47fca7e4: OK          <<=== for Header + Payload
    MD5 digest: OK
  • How can we make a V4 signature only in our RPM package?

Environment

Red Hat Enterprise Linux 8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content