Can't get private key with openssl (no start line:pem_lib.c:703:Expecting: ANY PRIVATE KEY)

后端 未结 4 1212
天命终不由人
天命终不由人 2020-12-05 23:18

I have a .key file, when I do

openssl rsa -text -in file.key

I get

unable to load Private Key
140000419358368:error:0906D06C:PEM         


        
4条回答
  •  無奈伤痛
    2020-12-05 23:42

    My two cents: came across the same error message in RHEL7.3 while running the openssl command with root CA certificate. The reason being, while downloading the certificate from AD server, Encoding was selected as DER instead of Base64. Once the proper version of encoding was selected for the new certificate download, error was resolved

    Hope this helps for new users :-)

提交回复
热议问题