Import-OVSslCertificate
Syntax
Description
By default, the HPE OneView appliance creates a self signed SSL Certificate for its WebUI. There might be a desire to trust the certificate, in case the SHA-1 hash becomes invalid (either due to a certificate change or man-in-the-middle attack) and the caller would like to be notified. This Cmdlet will assist in retrieving and storing the appliance self-generated SSL Certificate into the current users Trusted Root Certification Authorities store.
Please note that the Subject Alternate Name (SAN) must match that of the Appliance hostname you use to connect to your appliance. If it does not, an SSL conenction failure will occur. When creating a CSR on the appliance, make sure to include the additional FQDN and IP address(es) in the Alternative Name field.
Examples
Example 1
$Connection = Connect-OVMgmt Myappliance.domain.com Administrator MyP@ssword
Import-OVSslCertificate
Import the SSL certificate from the specific appliance.
Example 2
Connect-OVMgmt Myappliance.domain.com Administrator MyP@ssword
Connect-OVMgmt Myappliance2.domain.com Administrator MyP@ssword
$ConnectedSessions | Import-OVSslCertificate
Import the SSL Certificate from all connected sessions.
Parameters
-ApplianceConnection <Array>
Specify one or more [HPEOneView.Appliance.Connection] object(s) or Name property value(s).
| Aliases | Appliance |
|---|---|
| Required? | True |
| Position? | Named |
| Default value | ${Global:ConnectedSessions} |
| Accept pipeline input? | true (ByValue) |
| Accept wildcard characters? | False |
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216)
Input Types
HPE OneView Appliance Connection object