X509CertificateValidationMode X509CertificateValidationMode X509CertificateValidationMode X509CertificateValidationMode Enum

Definición

Una enumeración que hace una lista de las maneras de validar un certificado.An enumeration that lists the ways of validating a certificate.

public enum class X509CertificateValidationMode
public enum X509CertificateValidationMode
type X509CertificateValidationMode = 
Public Enum X509CertificateValidationMode
Herencia
X509CertificateValidationModeX509CertificateValidationModeX509CertificateValidationModeX509CertificateValidationMode

Campos

ChainTrust ChainTrust ChainTrust ChainTrust 2

El certificado es válido si la cadena genera una entidad de certificación en el almacén de la raíz de confianza.The certificate is valid if the chain builds to a certification authority in the trusted root store.

Custom Custom Custom Custom 4

El usuario debe complementar en un X509CertificateValidator personalizado para validar el certificado.The user must plug in a custom X509CertificateValidator to validate the certificate.

None None None None 0

Se hace ninguna validación del certificado.No validation of the certificate is done.

PeerOrChainTrust PeerOrChainTrust PeerOrChainTrust PeerOrChainTrust 3

El certificado es válido si está en el almacén de las personas de confianza o si la cadena genera una entidad de certificación en el almacén de la raíz de confianza.The certificate is valid if it is in the trusted people store, or if the chain builds to a certification authority in the trusted root store.

PeerTrust PeerTrust PeerTrust PeerTrust 1

El certificado es válido si está en el almacén de las personas de confianza.The certificate is valid if it is in the trusted people store.

Ejemplos

          ChannelFactory<ISimpleChannel> cf =
              new ChannelFactory<ISimpleChannel>();
          cf.Credentials.ClientCertificate.SetCertificate(
              StoreLocation.CurrentUser, StoreName.My,
              X509FindType.FindByThumbprint,
"37 28 05 09 22 81 07 08 a0 cd 2a af dd c3 83 cd c3 3b 8f 9d");
          cf.Credentials.ServiceCertificate.SetDefaultCertificate(
              StoreLocation.CurrentUser,
              StoreName.TrustedPeople,
              X509FindType.FindByThumbprint,
"33 93 68 cc 7c 75 80 24 a2 80 9f 45 8c 81 fa 92 ad 5b 04 39");
          cf.Credentials.ServiceCertificate.Authentication.CertificateValidationMode
              = X509CertificateValidationMode.PeerOrChainTrust;

Se aplica a