Skip to content

Commit

Permalink
addressed #49
Browse files Browse the repository at this point in the history
  • Loading branch information
Crypt32 committed May 11, 2022
1 parent 60ac7f8 commit a658a6f
Showing 1 changed file with 33 additions and 21 deletions.
54 changes: 33 additions & 21 deletions PKI/CertificateTemplates/CertificateTemplateFlags.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,57 +12,69 @@ public enum CertificateTemplateFlags {
/// </summary>
None = 0,
/// <summary>
/// Undefined.
/// This flag is reserved and not used.
/// </summary>
Undefined = 0x00000001, // 1
EnrolleeSuppliesSubject = 0x1, // 1
/// <summary>
/// Reserved. All protocols MUST ignore this flag.
/// This flag is reserved and not used.
/// </summary>
AddEmail = 0x00000002, // 2, Reserved
AddEmail = 0x2, // 2
/// <summary>
/// Undefined.
/// This flag is reserved and not used.
/// </summary>
Undefined2 = 0x00000004, // 4
AddObjectIdentifier = 0x4, // 4
/// <summary>
/// Reserved. All protocols MUST ignore this flag.
/// This flag is reserved and not used.
/// </summary>
DsPublish = 0x00000008, // 8, Reserved
DsPublish = 0x8, // 8
/// <summary>
/// Reserved. All protocols MUST ignore this flag.
/// This flag is reserved and not used.
/// </summary>
AllowKeyExport = 0x00000010, // 16, Reserved
AllowKeyExport = 0x10, // 16
/// <summary>
/// This flag indicates whether clients can perform autoenrollment for the specified template.
/// </summary>
Autoenrollment = 0x00000020, // 32
Autoenrollment = 0x20, // 32
/// <summary>
/// This flag indicates that this certificate template is for an end entity that represents a machine.
/// </summary>
MachineType = 0x00000040, // 64
MachineType = 0x40, // 64
/// <summary>
/// This flag indicates a certificate request for a CA certificate.
/// </summary>
IsCA = 0x00000080, // 128
IsCA = 0x80, // 128
/// <summary>
/// This flag indicates that a certificate based on this section needs to include a template name certificate extension.
/// Adds requester distinguished name
/// </summary>
AddTemplateName = 0x00000200, // 512
AddDistinguishedName = 0x100, // 256
/// <summary>
/// This flag indicates that the record of a certificate request for a certificate that is issued need not be persisted by the CA.
/// <para><strong>Windows Server 2003, Windows Server 2008</strong> - this flag is not supported.</para>
/// This flag indicates that a certificate based on this section needs to include a template name certificate extension.
/// </summary>
DoNotPersistInDB = 0x00000400, // 1024
AddTemplateName = 0x200, // 512
/// <summary>
/// This flag indicates a certificate request for cross-certifying a certificate.
/// </summary>
IsCrossCA = 0x00000800, // 2048
IsCrossCA = 0x800, // 2048
/// <summary>
/// This flag indicates that the record of a certificate request for a certificate that is issued need not be persisted by the CA.
/// <para><strong>Windows Server 2003, Windows Server 2008</strong> - this flag is not supported.</para>
/// </summary>
DoNotPersistInDB = 0x1000, // 4096
/// <summary>
/// This flag indicates that the template SHOULD not be modified in any way.
/// </summary>
IsDefault = 0x00010000, // 65536
IsDefault = 0x10000, // 65536
/// <summary>
/// This flag indicates that the template MAY be modified if required.
/// </summary>
IsModified = 0x00020000 // 131072
IsModified = 0x20000, // 131072
/// <summary>
/// N/A
/// </summary>
IsDeleted = 0x40000,
/// <summary>
/// N/A
/// </summary>
PolicyMismatch = 0x80000
}
}

0 comments on commit a658a6f

Please sign in to comment.