This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$req = Get-Certificate -Url ldap: -Template ExampleWebServer -SubjectName "CN=Test" -DnsName "test.example.com" -CertStoreLocation Cert:\LocalMachine\My\ | |
$hexSKI=$req.Request.Extensions.SubjectKeyIdentifier | |
# Interrogate CA for request with the above SKI: | |
# Get CA connection string: | |
$CC_DEFAULTCONFIG = 0 | |
$CaConfig = $(New-Object -ComObject CertificateAuthority.Config).GetConfig($CC_DEFAULTCONFIG) |