我怎么知道证书的storeName是什么? [英] How do I know what the storeName of a certificate is?

查看:143
本文介绍了我怎么知道证书的storeName是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows Server 2003中安装了一个证书

I have a certificate installed in windows server 2003

我从MMC看到的路径是:
证书(本地计算机)/个人/证书

The path I can see from MMC is: Certificates(Local Computer)/Personal/Certificates

我想在wcf配置中对其进行配置。我怎么知道storeName是什么?

I want to configure it in my wcf config. How do I know what the storeName is?

这是到目前为止我在wcf配置中得到的结果

This is what I get so far in my wcf config

<serviceCertificate findValue="certificate.example.com" storeLocation="LocalMachine" storeName="???" x509FindType="FindBySubjectName" />


推荐答案

证书存储可以视为逻辑容器在拥有一个或多个证书的操作系统中。查看证书存储区的最常见方法是使用证书MMC。

A Certificate Store can be thought of as a logical container in the operating system that holds one or more certificates.The most common way to view the certificate stores is using the Certificates MMC.

您必须确定在哪个可用证书中您要导入证书的商店。之后,您应该将正确的商店名称添加到配置文件中。

You have to decide in which of the available stores you want to import your certificate. After that, you should add to your config file the proper store name.

例如:如果您的证书存储在Trusted People商店中,则应该具有storeName = TrustedPeople

For example: if your certificate is stored in Trusted People store you should have storeName="TrustedPeople".

这是Microsoft在 https://msdn.microsoft.com/zh-cn/library/system.security.cryptography.x509certificates.storename(v = vs.110).aspx

This is the enumeration provided by Microsoft for StoreName in https://msdn.microsoft.com/en-us/library/system.security.cryptography.x509certificates.storename(v=vs.110).aspx

AddressBook->其他用户的X.509证书存储。

AddressBook -> The X.509 certificate store for other users.

AuthRoot->第三方证书颁发机构(CA)的X.509证书存储。

AuthRoot -> The X.509 certificate store for third-party certificate authorities (CAs).

CertificateAuthority->
X.509证书存储

CertificateAuthority -> The X.509 certificate store for intermediate certificate authorities (CAs).

不允许-> X.509证书存储区,用于吊销证书。

Disallowed -> The X.509 certificate store for revoked certificates.

我的->用于个人证书的X.509证书存储

My -> The X.509 certificate store for personal certificates.

Root-> X.509证书存储区,用于受信任的根证书颁发机构(CA)。

Root -> The X.509 certificate store for trusted root certificate authorities (CAs).

TrustedPeople-> X.509证书存储区,用于直接信任的人员和资源。

TrustedPeople -> The X.509 certificate store for directly trusted people and resources.

TrustedPublisher-> X.509证书存储区,用于直接信任的发布者。

TrustedPublisher -> The X.509 certificate store for directly trusted publishers.

在大多数情况下,您将证书存储在个人商店中,因此商店名称最常见的值是我的。

Most of the cases you store your certificate inside "Personal" store so the most common value for store name is "My".

这篇关于我怎么知道证书的storeName是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆