Starting in vSphere 8.0 Update 3, you can manage TLS profiles for ESXi by using the vSphere Client, esxcli commands, or the APIs. For vCenter Server, you manage TLS profiles by using the APIs.
If you use vSphere Configuration Profiles, you can manage the TLS setting for ESXi hosts at the vLCM cluster level. You can change the TLS setting for the cluster and remediate the cluster against this new configuration. For more information, see the chapter on managing vSphere Configuration Profiles in the Managing Host and Cluster Lifecycle documentation.
For standalone ESXi hosts, and non-vLCM clusters, you must manage the TLS profile by using esxcli commands. See the ESXCLI Concepts and Examples documentation and the esxcli online help.
Currently, you can only manage vCenter Server TLS profiles by using the APIs. See vSphere Automation SDKs Programming Guide and vSphere Automation REST API Programming Guide.
View the TLS Profile of an ESXi Host Using the vSphere Client
You can use the vSphere Client to view the TLS profile of an ESXi host that is part of a vLCM cluster.
In vSphere Configuration Profiles, settings that are not explicitly configured use the default values from the appropriate profile. For TLS profiles, the default is COMPATIBLE.
To view the TLS profile of a stand-alone or non-vLCM cluster ESXi host, see View the TLS Profile of an ESXi Host Using the CLI.
Prerequisites
You have enabled vSphere Configuration Profiles and created a draft configuration for the cluster. See the Managing Host and Cluster Lifecycle documentation.
Procedure
- In the vSphere Client, navigate to the vLCM cluster that you manage with a single image.
- On the Configure tab, click .
- On the Settings tab, click system.
- Click tls_client or tls_server to view which TLS profile is defined in the current desired configuration document.
View the TLS Profile of an ESXi Host Using the CLI
You can use the CLI to view the currently configured TLS profile of an ESXi host.
For standalone ESXi hosts, and non-vLCM clusters, you must manage the TLS profile by using esxcli
commands. For more information, see ESXCLI Reference. For ESXi hosts in a vLCM cluster, you can use either vSphere Configuration Profiles or esxcli
commands.
Prerequisites
Enable either SSH or the ESXi Shell on the ESXi host.
Procedure
Change the TLS Profile of an ESXi Host Using the vSphere Client
You can change the TLS profile of an ESXi host. The default TLS profile is COMPATIBLE.
Prerequisites
You have enabled vSphere Configuration Profiles and created a draft configuration for the cluster. See the Managing Host and Cluster Lifecycle documentation.
Procedure
Results
Change the TLS Profile of an ESXi Host Using the CLI
You can change the TLS profile of an ESXi host. The default TLS profile is COMPATIBLE.
For standalone ESXi hosts, and non-vLCM clusters, you must manage the TLS profile by using esxcli
commands. For more information, see ESXCLI Reference. For ESXi hosts in a vLCM cluster, you can use either vSphere Configuration Profiles or esxcli
commands.
Prerequisites
Enable either SSH or the ESXi Shell on the ESXi host.
Procedure
Edit the Parameters in the MANUAL TLS Profile Using the CLI
You can edit the set of parameters in the MANUAL TLS profile. To change TLS parameters such as cipher list and cipher suite, you must first set the TLS profile to MANUAL.
You must administer parameters in the MANUAL TLS profile by using esxcli commands. Administering the MANUAL TLS profile parameters is not integrated with vSphere Configuration Profiles.
You cannot set TLS parameters for individual vSphere services. The changes that you make by using the MANUAL TLS profile are applied at the system level.
Prerequisites
Enable either SSH or the ESXi Shell on the ESXi host.
Change the TLS profile to MANUAL. See either Change the TLS Profile of an ESXi Host Using the vSphere Client or Change the TLS Profile of an ESXi Host Using the CLI.
Procedure
Example
[root@host1] esxcli system tls server get Profile: COMPATIBLE Cipher List: <profile default> Cipher Suite: <profile default> Groups: <profile default> Protocol Versions: <profile default> Reboot Required: false [root@host1] esxcli system tls server set --profile MANUAL [root@host1] esxcli system tls server get Profile: MANUAL Cipher List: ECDHE+AESGCM:ECDHE+AES Cipher Suite: TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384 Groups: prime256v1:secp384r1:secp521r1 Protocol Versions: tls1.2,tls1.3 Reboot Required: true [root@host1] esxcli system tls server set --groups=prime256v1:secp384r1 [root@host1] esxcli system tls server get Profile: MANUAL Cipher List: TLS_AES_128_CCM_SHA256 Cipher Suite: TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384 Groups: prime256v1:secp384r1 Protocol Versions: tls1.2,tls1.3 Reboot Required: true
Manage the TLS Profile of a vCenter Server Host
You use the APIs to view and change the TLS profile for a vCenter Server host.
You can use various ways to execute HTTP requests. This task shows how to use the Developer Center in the vSphere Client to manage TLS profiles. See VMware vCenter Server Management Programming Guide for more information about using APIs to manage the vCenter Server Appliance.