satellite-installer command fails with error unable to load Private Key in Red Hat Satellite 6

Solution Verified - Updated -

Issue

  • satellite-installer command fails on Red Hat Satellite server with below error:

    Error 1: Puppet Private_key resource '/etc/candlepin/certs/candlepin-ca.key' failed. Logs:
     /Stage[main]/Certs::Candlepin/Certs::Keypair[katello-default-ca]/Private_key[/etc/candlepin/certs/candlepin-ca.key]/before
       before to File[/etc/candlepin/certs/candlepin-ca.key]
     /Stage[main]/Certs::Candlepin/Certs::Keypair[katello-default-ca]/Private_key[/etc/candlepin/certs/candlepin-ca.key]
       Adding autorequire relationship with File[/root/ssl-build/katello-default-ca.pwd]
       Skipping automatic relationship with File[/etc/candlepin/certs/candlepin-ca.key]
       Starting to evaluate the resource (678 of 1616)
       Could not evaluate: Execution of '/bin/openssl rsa -in /root/ssl-build/katello-default-ca.key -passin file:/root/ssl-build/katello-default-ca.pwd -text' returned 1: unable to load Private Key
    140558375663424:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:crypto/evp/evp_enc.c:643:
    140558375663424:error:23077074:PKCS12 routines:PKCS12_pbe_crypt:pkcs12 cipherfinal error:crypto/pkcs12/p12_decr.c:63:
    140558375663424:error:2306A075:PKCS12 routines:PKCS12_item_decrypt_d2i:pkcs12 pbe crypt error:crypto/pkcs12/p12_decr.c:94:
    140558375663424:error:0907B00D:PEM routines:PEM_read_bio_PrivateKey:ASN1 lib:crypto/pem/pem_pkey.c:88:
       Evaluated in 0.01 seconds
    

Environment

  • Red Hat Satellite 6.15

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