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).
VCF Operations for Networks 6.10.x
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.
There are two potential solutions to fix the headers in the key file:
Use the openssl command to convert the key file:openssl rsa -in file.key -out newfile.key
-or-
sed -i 's/-----BEGIN PRIVATE KEY-----/-----BEGIN RSA PRIVATE KEY-----/g' vrni_key.keysed -i 's/-----END PRIVATE KEY-----/-----END RSA PRIVATE KEY-----/g' vrni_key.key