In the Admin UI (https://AopNode/admin) / “Install New Certificate” form,
after BROWSE... ing to and selecting a .pem file,
the form displays a red underline under the file name without any error message.
VMware Aria Operations
There is some reason that the .pem file can not be applied.
Hover the mouse cursor over the file name field.
A tooltip will be displayed briefly with a message about the reason why the file can not be applied.
One of the more common messages for this when a valid .pem file has been selected is
"Unable to upload the certificate. The cluster should be in offline state."
In this case, take the cluster Offline in the Admin UI's System Status page before installing a new certificate.
The error message can also be found in the /storage/log/vcops/log/casa/admin-ui.log
For the "offline state" example referenced above, the message would be like
INFO [ajp-nio-127.0.0.1-8011-exec-66] com.vmware.vcops.util.admin.HTTPSRequester:488 - Upload file reordered.pem' to URL : https://localhost/casa/cluster/security/uploadcert
INFO [ajp-nio-127.0.0.1-8011-exec-66] com.vmware.vcops.util.admin.HTTPSRequester:609 - Response Code : 412
INFO [ajp-nio-127.0.0.1-8011-exec-66] com.vmware.vcops.util.admin.HTTPSRequester:503 - Response : {"error_message_key":"security.certificate.verification.cluster_not_in_offline_state","error_arguments":[],"error_message":"Unable to upload the certificate. The cluster should be in offline state."}