When executing PowerShell scripts for transitioning to vSphere Lifecycle Manager (vLCM) Images using SDDC Manager, you may encounter an SSL connection error:
Error Message:[ERROR] SSL Connection error to SDDC Manager "<sddc_manager_fqdn>". Please check that SDDC Manager has a CA signed certificate or Powershell trusts insecure certificates.
This typically occurs when PowerShell attempts to connect to SDDC Manager but does not trust the SSL certificate in use.
VMware Cloud Foundation 9.0
PowerShell / PowerCLI executed against SDDC Manager
By default, SDDC Manager is deployed with a self-signed SSL certificate.
PowerShell (and PowerCLI) do not trust self-signed or unverified certificates.
If the certificate has not been replaced with a CA-signed certificate, the connection is rejected, and the error is displayed.
You can resolve this issue by either installing a CA-signed certificate (recommended) or importing the existing SDDC Manager certificate into your workstation’s trusted certificate store.
Replacing the self-signed certificate with a CA-signed certificate ensures secure communication and eliminates trust issues for all future PowerShell and API operations.
Follow the official VMware documentation to replace SDDC Manager certificates:
Certificate Management in VMware Cloud Foundation 9.0
If using a CA-signed certificate is not immediately possible, you can manually trust the existing certificate on your workstation.
If VMCA is used, export the VMCA root certificate from the vCenter Server Appliance: /var/lib/vmware/vmca/root.cer
root.cer file to the workstation where the PowerShell script is executed.On the workstation, run mmc.exe.
Add the Certificates snap-in for Local Computer.
Navigate to: Trusted Root Certification Authorities → Certificates
root.cer file.Close and relaunch PowerShell.
Re-run the script.
For temporary testing, certificate validation can be bypassed in PowerShell by disabling SSL checks, but this is not recommended in production due to security risks.
Related resources: