HPE OneView

Identify what device(s) are associated to expired cert.

 
Ruster007
Advisor

Identify what device(s) are associated to expired cert.

HI Guys - creating new thread for my question:

I have an expired cert that I'd like to delete in OneView. 

Before I delete it, I'd like to confirm what device or devices are associated with it.

Is the a command to acheive this, or something that can be achieved via the UI?

Thanks

2 REPLIES 2
AmRa
HPE Pro

Re: Identify what device(s) are associated to expired cert.

Hi

Navigate to OneView Settings->Security->Manage Certificates

In that section of the UI, you can click on alias name of the expired certificate. Once you click on alias name it will give you the details of the device for which the certificate was added in OneView appliance trust store.

OneView Manage Cert.jpg

I am an HPE Employee

Accept or Kudo
ChrisLynch
HPE Pro

Re: Identify what device(s) are associated to expired cert.

Within the same screen, you can filter certificates based on certain states.  Click the drop down and you will see a number of items.

Manage Certificates screen.png

If you want to script this, you can with the following PowerShell Cmdlet:

# Get the list of certificates, looking to find certs that have expired.
Get-OVApplianceTrustedCertificate | ? { $_.Certificate.NotAfter -lt [DateTime]::Now }

The Certificate property of a returned object is of the System.Cryptogophy.X509Certificates.X509CertificateV2 class.  So you can do standard PowerShell/C# operations to that object.


I am an HPE employee

Accept or Kudo