Building kernel from source fails when FIPS is enabled on the system

Solution Verified - Updated -

Issue

  • System with FIPS enabled cannot build kernels from source code
  • Attempting to compile kernel with FIPS enabled results in the following output
could not find token "NSS Certificate DB"
pesign: Could not find certificate Red Hat Test Certificate
error: Bad exit status from /var/tmp/rpm-tmp.U0RKql (%build)

Environment

  • Red Hat Enterprise Linux 7

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