1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! Well-known OIDs used by MS-ICPR / WCCE certificate requests.
/// rsaEncryption — SubjectPublicKeyInfo algorithm identifier for RSA.
pub const RSA_ENCRYPTION: &str = "1.2.840.113549.1.1.1";
/// sha256WithRSAEncryption — signature algorithm on the CSR.
pub const SHA256_WITH_RSA: &str = "1.2.840.113549.1.1.11";
/// commonName — X.520 attribute type used in Subject.
pub const AT_COMMON_NAME: &str = "2.5.4.3";
/// PKCS#9 extensionRequest — attribute that carries requested X.509 extensions.
pub const PKCS9_EXTENSION_REQUEST: &str = "1.2.840.113549.1.9.14";
/// id-ce-subjectAltName — X.509 SubjectAltName extension.
pub const CE_SUBJECT_ALT_NAME: &str = "2.5.29.17";
/// Microsoft userPrincipalName otherName type — the ESC1 impersonation vector.
pub const MS_USER_PRINCIPAL_NAME: &str = "1.3.6.1.4.1.311.20.2.3";
/// id-ce-extKeyUsage — standard X.509 EKU extension.
pub const CE_EXT_KEY_USAGE: &str = "2.5.29.37";
/// Microsoft Application Policies extension — v1-template EKU carrier used
/// for ESC15 (EKUwu / CVE-2024-49019): v1 templates that ignore the standard
/// EKU extension still honour this Microsoft-specific one, letting a low-priv
/// requester inject Client Authentication onto a template that would otherwise
/// only issue e.g. Encrypting File System certs.
pub const MS_APPLICATION_POLICIES: &str = "1.3.6.1.4.1.311.21.10";
/// EKU: Client Authentication — required for PKINIT.
pub const EKU_CLIENT_AUTH: &str = "1.3.6.1.5.5.7.3.2";
/// EKU: Smart-Card Logon (Microsoft) — also usable for PKINIT.
pub const EKU_SMART_CARD_LOGON: &str = "1.3.6.1.4.1.311.20.2.2";
/// EKU: PKINIT Client Authentication.
pub const EKU_PKINIT_CLIENT_AUTH: &str = "1.3.6.1.5.2.3.4";
/// EKU: Any Purpose.
pub const EKU_ANY: &str = "2.5.29.37.0";