Skip to content

Import HPOVSslCertificate

Chris Lynch edited this page Jul 25, 2016 · 40 revisions

HPE OneView 2.00 Library

Import-HPOVSslCertificate

Import an appliance SSL Certificate.

SYNTAX

Import-HPOVSslCertificate [-ApplianceConnection] <Object> [<CommonParameters>]

Detailed 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 ocurr. When creating a CSR on the appliance, make sure to include the additional FQDN and IP address(es) in the Alternative Name field.

Parameters

-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)

Input Types

None. You cannot pipe objects to this Cmdlet.

Return Values

None.

Examples

 -------------------------- 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.

Related Links

HPE OneView 1.20 Library

Import-HPOVSslCertificate

Import an appliance SSL Certificate.

SYNTAX

Import-HPOVSslCertificate[ [-Appliance] <Appliance>] [<CommonParameters>]

Detailed Description

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.

Parameters

-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)

Input Types

None. You cannot pipe objects to this cmdlet.

Return Values

None.

Examples

 -------------------------- 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.

Related Links

Wiki Table of Contents

Clone this wiki locally