X509ServiceCertificateAuthentication.TrustedStoreLocation Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the trusted store location under which context the client certificate chain is validated.
public:
property System::Security::Cryptography::X509Certificates::StoreLocation TrustedStoreLocation { System::Security::Cryptography::X509Certificates::StoreLocation get(); void set(System::Security::Cryptography::X509Certificates::StoreLocation value); };
public System.Security.Cryptography.X509Certificates.StoreLocation TrustedStoreLocation { get; set; }
member this.TrustedStoreLocation : System.Security.Cryptography.X509Certificates.StoreLocation with get, set
Public Property TrustedStoreLocation As StoreLocation
Property Value
The trusted store location.
Exceptions
Attempted to set when credential is read-only.
Examples
The following code shows how to set this property.
ClientCredentials creds = new ClientCredentials();
// Configure chain trust.
creds.ServiceCertificate.Authentication.CertificateValidationMode
= X509CertificateValidationMode.ChainTrust;
creds.ServiceCertificate.Authentication.TrustedStoreLocation
= StoreLocation.LocalMachine;
Dim creds As New ClientCredentials()
' Configure chain trust.
creds.ServiceCertificate.Authentication.CertificateValidationMode = X509CertificateValidationMode.ChainTrust
creds.ServiceCertificate.Authentication.TrustedStoreLocation = StoreLocation.LocalMachine
The property can also be set in a configuration file.
Remarks
This property specifies whether machine or user context will be used to verify the X.509 certificate chain.
Applies to
Vertu í samstarfi við okkur á GitHub
Heimildina fyrir þetta efni er að finna á GitHub, þar sem þú getur líka búið til og farið yfir vandamál og sameinað beiðnir. Frekari upplýsingar er að finna í framlagshandbók okkar.