When generating new self signed certificates in the LCM locker we fill out the required fields and click "Generate". The UI does not respond and nothing happens.
When we look at the Developer Tools at the time we click "Generate" we see 400 Bad request
In the /var/log/vrlcm/vmware_vrlcm.log we see the following ERROR
YYYY-MM-DDT00:00:00.000Z INFO vrlcm[1575] [http-nio-8080-exec-6] [c.v.v.l.l.c.CertificateStoreController] -- Starting certificate generationYYYY-MM-DDT00:00:00.000Z INFO vrlcm[1575] [http-nio-8080-exec-6] [c.v.v.l.l.s.p.CertificateStoreService] -- Inside certificate store serviceYYYY-MM-DDT00:00:00.000Z ERROR vrlcm[1575] [http-nio-8080-exec-6] [c.v.v.l.l.c.CertificateStoreController] -- Failed to generate certificate.com.vmware.vrealize.lcm.common.exceptions.InvalidCertificateException: Validations failed for certificate.
Aria Suite Lifecycle 8.18.x
This is due to the Certificate Authority used for signing certificates in Aria Suite Lifecycle is expired.
Take snapshot of the Aria Suite Lifecycle Manager Appliance from vCenter before performing any operation.
curl --insecure -X PATCH https://LCMFQDN/lcm/locker/api/certificates/ca -H "Authorization: Basic Base64 encoded username:password"
Note: The authorization header should have the base64 encoded value of username and password in the format, username:password. For example, the value should be base64 encoded of admin@local:password.
Note: When using base64 on the Aria Suite Lifecycle appliance, run the following command to ensure the echo \n is not processed in the encoding by base64 by running the following command
echo -n 'admin@local:password' | base64
Full example of command using sample credentials above would be:
curl --insecure -X PATCH https://LCMFQDN/lcm/locker/api/certificates/ca -H "Authorization: Basic YWRtaW5AbG9jYWw6dm13YXJl"