July 2017
Beginner
222 pages
5h 2m
English
At this point, you should be able to create certificates and sign scripts with them. However, the underlying PKI infrastructure will not trust a certificate unless its issuer is a trusted authority. Public CAs are already included in the Trusted Root Certification Authorities store as well as private CAs in an Active Directory environment:
$exportType = [System.Security.Cryptography.X509Certificates.X509ContentType]::Cert$rawCert = $caCert.Export($exportType)[System.IO.File]::WriteAllBytes('c:\temp\ca.cer',$rawCert)
In the preceding sample, we use the cert content type to export the public key of the certificate (all that is required for the PKI to trust a certificate). The X509ContentType ...
Read now
Unlock full access