Closed VedaNiks closed 1 year ago
Hi @VedaNiks
The steps provided in the KB article are provided to add certificates to /etc/ssl/certs/
directory. Unfortunately, there is no direct API to add/remove certificate from this location.
There are APIs to manage VC Trusted roots. Perhaps, you can try following API to add self signed certificate to VECS. The trusted roots are synced to /etc/ssl/certs/
location.
Thanks Kunal
Hi @VedaNiks
Closing the issue. Reach back to us if you still have SDK related issue.
Thanks Kunal
Is your feature request related to a problem? Please describe.
I want to import a self-signed certificate in vCenter. Please see this kb article for more info: kb article
Describe the solution you'd like
I want to know if it is possible to import a self-signed certificate on a vCenter using an API call or a method call.
Describe alternatives you've considered
Given below are the two functions used on vCenter server to import a self-signed certificate from a host/server. We have to provide the IP adddress/FQDN of the host/server to the function and it imports the certificate present on the host/server into vCenter. The problem with this method is I have to SSH to vCenter and run this command manually. I am trying to automate this procedure.
Additional context
Adding a new online depot to vCenter Life Cycle Manager from UI or via REST API, you see an error message similar to :
"Online Depot URL '<your-online-depot-URL>' is not valid or cannot be reached now."
This occurs because vCenter server does not trust the certificate present on the server. To resolve this, you have to manually import the server certificate using this kb: kb article