mirror of
https://github.com/alvarsedano/pfSense-Certificate-Viewer.git
synced 2025-04-19 08:55:11 +00:00
Update result-example
This commit is contained in:
parent
c415742d86
commit
fc970971fb
@ -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 :)
|
||||
|
Loading…
x
Reference in New Issue
Block a user