Adding certificates to the trust store

Add certificates to the trust store by using the Add-HPESvtCertificate cmdlet. You can specify the path to the certificate file or an X509Certificate2 object. The certificate file can be a PEM or a DER file. To use the Add-HPESvtCertificate cmdlet, you must first authenticate.

The following example shows how add a certificate called test-node.pem by path. It assumes that you have already authenticated.

PS C:\> Add-HPESvtCertificate -Path c:\temp\test-node.pem

certificate : -----BEGIN CERTIFICATE-----

              -----END CERTIFICATE-----
hash        : 47ca6deb5880fd26ec4f546b3884aa65c78590df
subject     :,,O=myco,L=mycity,ST=mystate,C=US
issuer      :,, O=myco, L=mycity, ST=mystate, C=US
serialno    : ca6d9ffd3685ece2

This example shows how to add a root certificate by using an X509Certificate2 object:

$newrootcert = [System.Security.Cryptography.X509Certificates.X509Certificate2]::New($newrootpath)
Add-HPESvtCertificate -Certificate $newrootcert

Optionally, you can pipe the parameter to Add-HPESvtCertificate instead of passing it as an argument. For example:

'test.pem' | Add-HPESvtCertificate


$newrootcert | Add-HPESvtCertificate

Related Blogs

Roy Atkins

HPE SimpliVity PowerShell Module

May 16, 2019
Ron Dharma

Using Postman with HPE SimpliVity

Nov 9, 2018

HPE Developer Newsletter

Stay in the loop.

Sign up for the HPE Developer Newsletter or visit the Newsletter Archive to see past content.

By clicking on “Subscribe Now”, I agree to HPE sending me personalized email communication about HPE and select HPE-Partner products, services, offers and events. I understand that my email address will be used in accordance with HPE Privacy Statement. You may unsubscribe from receiving HPE and HPE-Partner news and offers at any time by clicking on the Unsubscribe button at the bottom of the newsletter.

For more information on how HPE manages, uses, and protects your personal data please refer to HPE Privacy Statement.