如何:使用 MMC 管理单元查看证书How to: View certificates with the MMC snap-in

当您创建安全的客户端或服务时,可以使用证书作为凭据。When you create a secure client or service, you can use a certificate as the credential. 例如,常见的凭据类型是 X.509 证书,创建具有X509CertificateInitiatorClientCredential.SetCertificate方法。For example, a common type of credential is the X.509 certificate, which you create with the X509CertificateInitiatorClientCredential.SetCertificate method.

有三种不同类型的可以检查 Windows 系统上使用 Microsoft 管理控制台 (MMC) 的证书存储:There are three different types of certificate stores that you can examine with the Microsoft Management Console (MMC) on Windows systems:

  • 本地计算机:存储是在设备本地和全局上设备的所有用户。Local computer: The store is local to the device and global to all users on the device.

  • 当前用户:在存储区是本地的设备上的当前用户帐户。Current user: The store is local to the current user account on the device.

  • 服务帐户:在存储区是本地的设备上的特定服务。Service account: The store is local to a particular service on the device.

在 MMC 管理单元中查看证书View certificates in the MMC snap-in

下面的过程演示如何检查本地设备以查找相应的证书上的存储区:The following procedure demonstrates how to examine the stores on your local device to find an appropriate certificate:

  1. 选择运行启动菜单中,然后输入mmcSelect Run from the Start menu, and then enter mmc.

    将显示在 MMC。The MMC appears.

  2. 文件菜单中,选择添加/删除管理单元From the File menu, select Add/Remove Snap In.

    添加或删除管理单元窗口会显示。The Add or Remove Snap-ins window appears.

  3. 可用的管理单元列表中,选择证书,然后选择添加From the Available snap-ins list, choose Certificates, then select Add.

    添加证书管理单元

  4. 在中管理单元中的证书窗口中,选择计算机帐户,然后选择下一步In the Certificates snap-in window, select Computer account, and then select Next.

    或者,您可以选择我的用户帐户当前用户或服务帐户针对特定服务。Optionally, you can select My user account for the current user or Service account for a particular service.

    备注

    如果您不管理员为你的设备,你可以仅对你的用户帐户的管理证书。If you're not an administrator for your device, you can manage certificates only for your user account.

  5. 在中选择计算机窗口中,保留本地计算机选择,并选择完成In the Select Computer window, leave Local computer selected, and then select Finish.

  6. 在中管理单元中添加或删除窗口中,选择确定In the Add or Remove Snap-in window, select OK.

    添加证书管理单元

  7. 可选:从文件菜单中,选择保存另存为保存 MMC 控制台文件以供将来使用。Optional: From the File menu, select Save or Save As to save the MMC console file for later use.

  8. 若要查看你的证书 MMC 管理单元中,选择控制台根节点在左窗格中,然后展开证书 (本地计算机)To view your certificates in the MMC snap-in, select Console Root in the left pane, then expand Certificates (Local Computer).

    将显示每种类型的证书的目录的列表。A list of directories for each type of certificate appears. 从每个证书目录中,可以查看、 导出、 导入,并删除其证书。From each certificate directory, you can view, export, import, and delete its certificates.

使用证书管理器工具查看证书View certificates with the Certificate Manager tool

您还可以查看、 导出、 导入,和使用证书管理器工具中删除证书。You can also view, export, import, and delete certificates by using the Certificate Manager tool.

若要查看本地设备的证书To view certificates for the local device

  1. 选择运行启动菜单中,然后输入certlm.mscSelect Run from the Start menu, and then enter certlm.msc.

    将显示本地设备的证书管理器工具。The Certificate Manager tool for the local device appears.

  2. 若要查看您的证书,在证书-本地计算机在左窗格中,展开你想要查看的证书的类型的目录。To view your certificates, under Certificates - Local Computer in the left pane, expand the directory for the type of certificate you want to view.

若要查看当前用户证书To view certificates for the current user

  1. 选择运行启动菜单中,然后输入certmgr.mscSelect Run from the Start menu, and then enter certmgr.msc.

    当前用户的证书管理器工具会显示。The Certificate Manager tool for the current user appears.

  2. 若要查看您的证书,在证书-当前用户在左窗格中,展开你想要查看的证书的类型的目录。To view your certificates, under Certificates - Current User in the left pane, expand the directory for the type of certificate you want to view.

请参阅See also