Quantcast
Channel: Public Key Infrastructure PowerShell module
Viewing all articles
Browse latest Browse all 729

New Post: Pulling Subject Alternative Names from certificates in Issuing CA.

$
0
0
Extensions are stored in a different table. So you will need to use a bit different approach:
# retrieve extensions associated with the request in the DB$e= Get-CertificationAuthority -ComputerName "xxx" | Get-DatabaseRow -Table Extension -RowID xx | ?{$_.ExtensionName -eq"2.5.29.17"}
$asn= New-Object System.Security.Cryptography.AsnEncodedData @(,([convert]::frombase64string($e.ExtensionRawValue)))
$ext= New-Object System.Security.Cryptography.X509Certificates.X509SubjectAlternativeNamesExtension $asn,0

Viewing all articles
Browse latest Browse all 729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>