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

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

问题描述

我在Windows Server 2003中安装了证书



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



我想在我的wcf配置它。我如何知道storeName是什么?



这是我到目前为止在我的wcf config

 < serviceCertificate findValue =certificate.example.comstoreLocation =LocalMachinestoreName =??? x509FindType =FindBySubjectName/> 


解决方案

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



您必须决定在哪个商店要导入您的证书。



例如:如果你的证书存储在Trusted People存储中,你应该有storeName =TrustedPeople 。



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



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



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



CertificateAuthority - >
X.509证书库



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



My - >用于个人证书的X.509证书存储区。



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

TrustedPeople - >直接信任的人和资源的X.509证书库。



TrustedPublisher - > X.509



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


I have a certificate installed in windows server 2003

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

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

This is what I get so far in my wcf config

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

解决方案

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.

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

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 -> The X.509 certificate store for other users.

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

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

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

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

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

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

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天全站免登陆