From 1bac77de66ad0afa844553042504d665a7e06995 Mon Sep 17 00:00:00 2001 From: Alvaro Sedano Date: Mon, 22 Jul 2019 02:06:12 +0200 Subject: [PATCH] Update result-example.md --- result-example.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/result-example.md b/result-example.md index cd580eb..228ca54 100644 --- a/result-example.md +++ b/result-example.md @@ -21,9 +21,9 @@ But due to the duplicity of SerialNumbers, the openVPN tunnel that uses "revocad the certs "hsanchez" and "uaIntro". every item of $listaC has these attributes: - +```powershell PS C:\Users\me\Documents> $listaC[56] - +``` EnhancedKeyUsageList : {Client Authentication (1.3.6.1.5.5.7.3.2)} DnsNameList : {uaDedicated01} SendAsTrustedIssuer : False @@ -56,14 +56,12 @@ revokedOn : {revocados, revCAcert} --- You can show certs that will expire in the next 90 days - +```powershell $listaC | Where-Object {$_.NotAfter -le (Get-Date).AddDays(90)} | Select sIssuer, SerialNumber, FriendlyName, DnsNameList, sSubject, revokedOn | ft - -$listaC | Where-Object {$_.revokedOn -ne $null} | Select sIssuer, SerialNumber, FriendlyName, DnsNameList, sSubject, revokedOn | ft - +``` --- Or the list of revoked Certs - +```powershell $listaC | Where-Object {$_.revokedOn -ne $null} | Select sIssuer, SerialNumber, FriendlyName, DnsNameList, sSubject, revokedOn | ft - +``` And everything you want :)