X509ServiceCertificateAuthentication.RevocationMode Propriedade
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Obtém ou define o modo de revogação de certificados para os modos de validação de certificados ChainTrust e PeerOrChainTrust X.509.
public:
property System::Security::Cryptography::X509Certificates::X509RevocationMode RevocationMode { System::Security::Cryptography::X509Certificates::X509RevocationMode get(); void set(System::Security::Cryptography::X509Certificates::X509RevocationMode value); };
public System.Security.Cryptography.X509Certificates.X509RevocationMode RevocationMode { get; set; }
member this.RevocationMode : System.Security.Cryptography.X509Certificates.X509RevocationMode with get, set
Public Property RevocationMode As X509RevocationMode
Valor de Propriedade
Um dos valores em X509RevocationMode: NoCheck, Online, ou Offline.
Exceções
Tentei definir quando a credencial é apenas leitura.
Exemplos
O código seguinte mostra como definir esta propriedade.
ClientCredentials creds = new ClientCredentials();
// Configure chain trust.
creds.ServiceCertificate.Authentication.CertificateValidationMode =
X509CertificateValidationMode.ChainTrust;
creds.ServiceCertificate.Authentication.RevocationMode =
X509RevocationMode.NoCheck;
Dim creds As New ClientCredentials()
' Configure chain trust.
creds.ServiceCertificate.Authentication.CertificateValidationMode = X509CertificateValidationMode.ChainTrust
creds.ServiceCertificate.Authentication.RevocationMode = X509RevocationMode.NoCheck
A propriedade também pode ser definida num ficheiro de configuração.
Observações
Ao utilizar certificados, o sistema valida que o certificado cliente não foi revogado, verificando se o certificado cliente não está na lista de certificados revogados. Esta verificação pode ser realizada tanto online como numa lista de revogações em cache. A verificação de revogação pode ser desativada definindo esta propriedade como NoCheck.