How to create encrypted RSA key in FIPS mode ?

Solution Verified - Updated -

Issue

  • Unable to create encrypted RSA key in FIPS mode and getting error


    # openssl genrsa -aes256 -passout pass:password123 -out /var/tmp/xyz_https.key 2048 Generating RSA private key, 2048 bit long modulus (2 primes) +++++++++ e is 65537 (0x010001) 139644581889856:error:060800C8:digital envelope routines:EVP_DigestInit_ex:disabled for FIPS:crypto/evp/digest.c:135:

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