Update result-example

This commit is contained in:
Alvaro Sedano 2019-07-22 01:41:06 +02:00 committed by GitHub
parent c415742d86
commit fc970971fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,7 @@ FriendlyName : uaDedicated01(02)
IssuerName : System.Security.Cryptography.X509Certificates.X500DistinguishedName
NotAfter : 12/07/2020 14:10:54
NotBefore : 13/07/2018 14:10:54
HasPrivateKey : False
HasPrivateKey : False <-- NOT IMPORTED BY THIS POWERSHELL SCRIPT
PrivateKey :
PublicKey : System.Security.Cryptography.X509Certificates.PublicKey
RawData : {18, ...}
@ -57,4 +57,11 @@ revokedOn : {revocados, revCAcert}
---
You can show certs that will expire in the next 90 days
$listaC | Where {$_.NotAfter -le (GetDate).AddDays(90)}
$listaC | Where-Object {$_.NotAfter -le (Get-Date).AddDays(90)} | Select sIssuer, SerialNumber, FriendlyName, DnsNameList, sSubject, revokedOn | ft
---
Or the list of revoked Certs
$listaC | Where-Object {$_.revokedOn -ne $null} | Select sIssuer, SerialNumber, FriendlyName, DnsNameList, sSubject, revokedOn | ft
---
And everything you want :)