Updating certificates in VCF Operations for Networks generates the error, "Failed to find key file"
search cancel

Updating certificates in VCF Operations for Networks generates the error, "Failed to find key file"

book

Article ID: 383749

calendar_today

Updated On:

Products

VCF Operations for Networks

Issue/Introduction

Updating certificates in VCF Operations for Networks using custom-cert apply returns the error message: "Error: Failed to find key file."

Note: VCF Operations for Networks was previously known as vRealize Network Insight (vRNI) and Aria Operations for Networks (AON).

Environment

VCF Operations for Networks 6.10.x

Cause

In certain versions of OpenSSL, the file type of an RSA private key shows to be "ASCII text”. VCF Operations for Networks 6.10.0 includes an affected version of OpenSSL and the headers must be fixed for the key to be valid.

Resolution

There are two potential solutions to fix the headers in the key file:

  1. Use the openssl command to convert the key file:

    openssl rsa -in file.key -out newfile.key

-or-

  1. Edit the existing key file:

    sed -i 's/-----BEGIN PRIVATE KEY-----/-----BEGIN RSA PRIVATE KEY-----/g' vrni_key.key
    sed -i 's/-----END PRIVATE KEY-----/-----END RSA PRIVATE KEY-----/g' vrni_key.key