Gets a security certificate object from a VMware vCenter Server, from a VMware ESX host, or from a Citrix XenServer host.
Description
The Get-SCCertificate cmdlet gets a security certificate object from a vCenter Server, from an ESX host, or from a XenServer host. You can use this cmdlet to import a non-trusted certificate into System Center Virtual Machine Manager (VMM) so that you can use the certificate with the Add-SCVirtualizationManager cmdlet, the Set-SCVirtualizationManager cmdlet, the Add-SCVMHost cmdlet or the Set-SCVMHost cmdlet.
The certificate is required in order to establish an SSL connection between the VMM server and the vCenter Server, ESX host, or XenServer host.
For more information about Get-SCCertificate, type: "Get-Help Get-SCCertificate -online".
Parameters
ComputerName
Required?
true
Accept Pipeline Input?
false
Position?
0
Specifies the name of a computer that VMM can uniquely identify on your network. Valid formats are: FQDN, IPv4 or IPv6 address, or NetBIOS name.
NOTE: See the examples for a specific cmdlet to determine how that cmdlet specifies the computer name.
TCPPort
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies a numeric value that represents a TCP port.
VMMServer
Required?
false
Accept Pipeline Input?
true (ByValue)
Position?
named
Specifies a VMM server object.
Examples
1: Retrieve the security certificate
for the specified VMware vCenter Server.
This command gets the security certificate object for the vCenter Server server named vCenterServer01 located in the Contoso.com domain, and displays the security certficate information.
2: Retrieve the security certificate
for a specified VMware ESX host.
The first command gets the security certificate object from the ESX host named ESXHost01 and stores the object in the $ESXCert variable.
The second command passes the contents of $ESXCert to the Get-Member cmdlet, which displays the .NET type and a list of methods and properties for the certificate object.
3: Retrieve the security certificate
for the specified Citrix XenServer host.
This command gets the security certificate object for the XenServer named XenServer01 located in the Contoso.com domain, and displays the security certficate information.