Red Hat Satellite 6 upgrade failed with an error "Could not find private key from /root/ssl-build/katello-default-ca.key".

Solution Verified - Updated -

Issue

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

    [ERROR ] [configure] /Stage[main]/Certs::Candlepin/Certs::Keypair[katello-default-ca]/Private_key[/etc/candlepin/certs/candlepin-ca.key]: 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: Could not find private key from /root/ssl-build/katello-default-ca.key
    [ERROR ] [configure] 004E1E81B07F0000:error:1608010C:STORE routines:ossl_store_handle_load_result:unsupported:crypto/store/store_result.c:151:
    [ERROR ] [configure] 004E1E81B07F0000:error:1C800064:Provider routines:ossl_cipher_unpadblock:bad decrypt:providers/implementations/ciphers/ciphercommon_block.c:107:
    [ERROR ] [configure] 004E1E81B07F0000:error:11800074:PKCS12 routines:PKCS12_pbe_crypt_ex:pkcs12 cipherfinal error:crypto/pkcs12/p12_decr.c:84:maybe wrong password
    
  • Or

    [ERROR ] [configure] /Stage[main]/Certs::Candlepin/Certs::Keypair[katello-default-ca]/Private_key[/etc/candlepin/certs/candlepin-ca.key]: 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: Could not find private key from /root/ssl-build/katello-default-ca.key
    [ERROR ] [configure] 007EF22DF47F0000:error:1608010C:STORE routines:ossl_store_handle_load_result:unsupported:crypto/store/store_result.c:151:
    [ERROR ] [configure] 007EF22DF47F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:355:Global default library context, Algorithm (DES-EDE3-CBC : 65), Properties ()
    

Environment

  • Red Hat Satellite 6.16 and above.

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