Update result-example.md

This commit is contained in:
Alvaro Sedano 2019-07-22 02:06:12 +02:00 committed by GitHub
parent 0cd786e8d2
commit 1bac77de66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,9 +21,9 @@ But due to the duplicity of SerialNumbers, the openVPN tunnel that uses "revocad
the certs "hsanchez" and "uaIntro". the certs "hsanchez" and "uaIntro".
every item of $listaC has these attributes: every item of $listaC has these attributes:
```powershell
PS C:\Users\me\Documents> $listaC[56] PS C:\Users\me\Documents> $listaC[56]
```
EnhancedKeyUsageList : {Client Authentication (1.3.6.1.5.5.7.3.2)} EnhancedKeyUsageList : {Client Authentication (1.3.6.1.5.5.7.3.2)}
DnsNameList : {uaDedicated01} DnsNameList : {uaDedicated01}
SendAsTrustedIssuer : False SendAsTrustedIssuer : False
@ -56,14 +56,12 @@ revokedOn : {revocados, revCAcert}
--- ---
You can show certs that will expire in the next 90 days 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 {$_.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 Or the list of revoked Certs
```powershell
$listaC | Where-Object {$_.revokedOn -ne $null} | Select sIssuer, SerialNumber, FriendlyName, DnsNameList, sSubject, revokedOn | ft $listaC | Where-Object {$_.revokedOn -ne $null} | Select sIssuer, SerialNumber, FriendlyName, DnsNameList, sSubject, revokedOn | ft
```
And everything you want :) And everything you want :)