该证书的 SetCertificate() 参数应该是什么?
What should be SetCertificate() arguments for this certificate?
对于此证书,以下调用的参数应该是什么?我尝试了以下但没有用。
X509CertificateInitiatorClientCredential.ClientCertificate.SetCertificate(
StoreLocation.LocalMachine
,StoreName.CertificateAuthority
,X509FindType.FindBySubjectName
,"CN=MPCA" // also tried without CN=
);
证书工具的 TrustedRootCertificateAuthorities
存储名称映射到 .NET X509 API.
中的 StoreName.Root
X509CertificateInitiatorClientCredential.ClientCertificate.SetCertificate(
StoreLocation.LocalMachine
,StoreName.Root
,X509FindType.FindBySerialNumber
,"FA###########434" // serial found by enumerating all certs
);
或者:
X509CertificateInitiatorClientCredential.ClientCertificate.SetCertificate(
StoreLocation.LocalMachine
,StoreName.Root
,X509FindType.FindBySubjectName
,"MPCA" // Without CN=
);
对于此证书,以下调用的参数应该是什么?我尝试了以下但没有用。
X509CertificateInitiatorClientCredential.ClientCertificate.SetCertificate(
StoreLocation.LocalMachine
,StoreName.CertificateAuthority
,X509FindType.FindBySubjectName
,"CN=MPCA" // also tried without CN=
);
证书工具的 TrustedRootCertificateAuthorities
存储名称映射到 .NET X509 API.
StoreName.Root
X509CertificateInitiatorClientCredential.ClientCertificate.SetCertificate(
StoreLocation.LocalMachine
,StoreName.Root
,X509FindType.FindBySerialNumber
,"FA###########434" // serial found by enumerating all certs
);
或者:
X509CertificateInitiatorClientCredential.ClientCertificate.SetCertificate(
StoreLocation.LocalMachine
,StoreName.Root
,X509FindType.FindBySubjectName
,"MPCA" // Without CN=
);