-
Notifications
You must be signed in to change notification settings - Fork 52
Import HPOVSslCertificate
Import an appliance SSL Certificate.
Import-HPOVSslCertificate [-ApplianceConnection] <Object> [<CommonParameters>]
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 ocurr. When creating a CSR on the appliance, make sure to include the additional FQDN and IP address(es) in the Alternative Name field.
-ApplianceConnection <Object>
Aliases [-Appliance]
Specify one or more HPOneView.Appliance.Connection object(s) or Name property value(s). If Resource object is provided via Pipeline, the ApplianceConnection property of the object will be used.
Default Value: ${Global:ConnectSessions} | ? Default
Aliases | Appliance |
Required? | true |
Position? | 0 |
Default value | (${Global:ConnectedSessions} | ? Default) |
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)
None. You cannot pipe objects to this Cmdlet.
None.
-------------------------- EXAMPLE 1 --------------------------PS C:\> $Connection = Connect-HPOVMgmt Myappliance.domain.com Administrator MyP@ssword PS C:\> Import-HPOVSslCertificate -ApplianceConnection $Connection
Import the SSL certificate from the specific appliance.
-------------------------- EXAMPLE 2 --------------------------PS C:\> Connect-HPOVMgmt Myappliance.domain.com Administrator MyP@ssword PS C:\> Connect-HPOVMgmt Myappliance2.domain.com Administrator MyP@ssword PS C:\> Import-HPOVSslCertificate
Import the SSL Certificate from all connected sessions.
- [Show-HPOVSslCertificate] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Show-HPOVSslCertificate)
- [New-HPOVApplianceCsr] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/New-HPOVApplianceCsr)
- [Install-HPOVApplianceCertificate] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Install-HPOVApplianceCertificate)
- [New-HPOVApplianceSelfSignedCertificate] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/New-HPOVApplianceSelfSignedCertificate)
- [Get-HPOVSslCertificateStatus] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Get-HPOVSslCertificateStatus)
Import an appliance SSL Certificate.
Import-HPOVSslCertificate[ [-Appliance] <Appliance>] [<CommonParameters>]
By default, the HP 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 ocurr. When creating a CSR on the appliance, make sure to include the additional FQDN and IP address(es) in the Alternative Name field.
-Appliance <Appliance>
Used to specify the applinace to connect to, if an existing connection isn't established from the Connect-HPOVMgmt cmdlet.
Aliases | |
Required? | false |
Position? | 1 |
Default value | $script:HPOneViewAppliance |
Accept pipeline input? | false |
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)
None. You cannot pipe objects to this cmdlet.
None.
-------------------------- EXAMPLE 1 --------------------------PS C:\> Import-HPOVSslCertificate -appliance hpov.contoso.com
Import the SSL certificate from the specific appliance.
-------------------------- EXAMPLE 2 --------------------------PS C:\> Connect-HPOVMgmt hpov.contoso.com Administrator MyP@ssword PS C:\> Import-HPOVSslCertificate
Import the SSL Certificate from the existing connection provided by the Connect-HPOVMgmt cmdlet.
- [Show-HPOVSslCertificate] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Show-HPOVSslCertificate)
- [New-HPOVApplianceCsr] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/New-HPOVApplianceCsr)
- [Install-HPOVApplianceCertificate] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Install-HPOVApplianceCertificate)
- [New-HPOVApplianceSelfSignedCertificate] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/New-HPOVApplianceSelfSignedCertificate)
- [Get-HPOVSslCertificateStatus] (https://github.com/HewlettPackard/POSH-HPOneView/wiki/Get-HPOVSslCertificateStatus)