Managing Certificates

There are several tasks that fall under the purview of certificate management, including importing certificates, inspecting certificates, and deleting certificates. This section examines each of these tasks.

Inspecting a Certificate

Before importing a certificate, you may want to inspect it to ensure it is the correct certificate for the operation at hand. The Certificate Manager utility that has been used in the past does not have this capability. To inspect a certificate, use the .NET Framework class X509Certificate. The X509Certificate class is located in the Security.Cryptography.X509Certificates .NET Framework namespace. The properties to inspect are the same properties shown in the Certificate Manager utility, Figure 16-3 ...

Get Windows PowerShell™ Scripting Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.