如何:通过 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.SetCertificateFor example, a common type of credential is the X.509 certificate, which you create with the X509CertificateInitiatorClientCredential.SetCertificate method.

有三种不同类型的证书存储,你可以通过 Microsoft 管理控制台 (MMC) 在 Windows 系统上进行检查: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.msc” 。Select 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