July 2017
Beginner
222 pages
5h 2m
English
In the preceding sample, we saved the generated certificate in a variable. This is a very convenient when creating a new certificate, but usually you will be loading certificates from a store or the filesystem.
A certificate's thumbprint is used as the directory where it is stored and is usually used to retrieve it. However, you can use other identifiers such as FriendlyName and Subject using PowerShell's filtering features:
$caCert.Thumbprint2A0290A44F5052EB5E4F26C55858324B4870EFD6Get-ChildItem -Path Cert:\CurrentUser\My\2A0290A44F5052EB5E4F26C55858324B4870EFD6Thumbprint Subject---------- -------2A0290A44F5052EB5E4F26C55858324B4870EFD6 CN=My Certificate Authority$caCert = Get-ChildItem -Path Cert:CurrentUsermy ...
Read now
Unlock full access