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

New Post: Get Pending Requests with SAN / DNS

$
0
0
When I use this code:
$rawBytes = [convert]::frombase64string($RawRequest)
$pkcs7 = new-object System.Security.Cryptography.Pkcs.PKCS7SignedMessage(,$rawBytes)
# get embedded request:
$pkcs7.Content[0]
# get SAN extension:
$pkcs7.Content[0].Extensions | ?{$_.oid.value -eq "2.5.29.17"}
I am still getting: Exception calling ".ctor" with "1" argument(s): "ASN1 bad tag value met"

Viewing all articles
Browse latest Browse all 729

Trending Articles



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