X509CertificateTemplateSubjectNameFlag enumeration (certenroll.h)

The X509CertificateTemplateSubjectNameFlag enumeration contains values that specify server and client actions concerning subject names.

Syntax

typedef enum X509CertificateTemplateSubjectNameFlag {
  SubjectNameEnrolleeSupplies,
  SubjectNameRequireDirectoryPath,
  SubjectNameRequireCommonName,
  SubjectNameRequireEmail,
  SubjectNameRequireDNS,
  SubjectNameAndAlternativeNameOldCertSupplies,
  SubjectAlternativeNameEnrolleeSupplies,
  SubjectAlternativeNameRequireDirectoryGUID,
  SubjectAlternativeNameRequireUPN,
  SubjectAlternativeNameRequireEmail,
  SubjectAlternativeNameRequireSPN,
  SubjectAlternativeNameRequireDNS,
  SubjectAlternativeNameRequireDomainDNS
} ;

Constants

Name Description
SubjectNameEnrolleeSupplies Instructs the client to provide subject information in the certificate request.
SubjectNameRequireDirectoryPath Instructs the certification authority (CA) to specify the requestor's Active Directory distinguished name as the subject name in the issued certificate.
SubjectNameRequireCommonName Instructs the certification authority (CA) to specify the requestor's Active Directory common name (CN) as the subject name in the issued certificate.
SubjectNameRequireEmail Instructs the CA to specify the value of the e-mail attribute in the requestor's Active Directory user object as the subject name in the issued certificate.
SubjectNameRequireDNS Instructs the CA to specify the value of the DNS attribute in the requestor's Active Directory user object as the subject name in the issued certificate.
SubjectNameAndAlternativeNameOldCertSupplies Instructs the client to reuse the subject name and alternative subject name extensions from an existing valid certificate when creating a renewal certificate request. This flag can only be used when the SubjectNameEnrolleeSupplies or the SubjectAlternativeNameEnrolleeSupplies flag is specified.
SubjectAlternativeNameEnrolleeSupplies Instructs the client to provide subject alternative name information in the certificate request.
SubjectAlternativeNameRequireDirectoryGUID Instructs the CA to add the value of the objectGUID attribute in the requestor's Active Directory user object to the Subject Alternative Name extension in the issued certificate.
SubjectAlternativeNameRequireUPN Instructs the CA to add the value of the UPN attribute in the requestor's Active Directory user object to the Subject Alternative Name extension in the issued certificate.
SubjectAlternativeNameRequireEmail Instructs the CA to add the value of the e-mail attribute in the requestor's Active Directory user object to the Subject Alternative Name extension in the issued certificate.
SubjectAlternativeNameRequireSPN Instructs the CA to add the value of the SPN attribute in the requestor's Active Directory user object to the Subject Alternative Name extension in the issued certificate.
SubjectAlternativeNameRequireDNS Instructs the CA to add the value of the DNS attribute in the requestor's Active Directory user object to the Subject Alternative Name extension in the issued certificate.
SubjectAlternativeNameRequireDomainDNS Instructs the CA to add the value of the DNS of the root domain to the Subject Alternative Name extension in the issued certificate.

Requirements

   
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Header certenroll.h