X509ServiceCertificateAuthentication.RevocationMode Propiedad

Definición

Obtiene o establece el modo de revocación de certificados para el modo de validación de certificados ChainTrust y 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 propiedad

X509RevocationMode

Uno de los valores de X509RevocationMode: NoCheck, Online o Offline.

Excepciones

Se intentó establecer cuando la credencial es de solo lectura.

Ejemplos

El código siguiente muestra cómo establecer esta propiedad.

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

La propiedad también puede establecerse en un archivo de configuración.

Comentarios

Al utilizar los certificados, el sistema valida que no se ha revocado el certificado del cliente, comprobando que el certificado del cliente no está en la lista de certificados revocados. Esta comprobación se puede realizar comprobándolo en línea o comprobándolo con una lista de revocaciones almacenada en memoria caché. La comprobación de la revocación se puede desactivar estableciendo esta propiedad como NoCheck.

Se aplica a