From b87043c38a68571771520cc815c623f6e5833df9 Mon Sep 17 00:00:00 2001 From: zdm Date: Tue, 24 Dec 2024 12:55:52 +0200 Subject: [PATCH] chore: refactor certificates --- lib/certificates.js | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/lib/certificates.js b/lib/certificates.js index cc634baa0..5e18e9d49 100644 --- a/lib/certificates.js +++ b/lib/certificates.js @@ -14,25 +14,23 @@ const DEFAULT_MAX_AGE = "10 years", "namedCurve": "P-256", "hash": "SHA-256", }, - ATTRIBUTES = { - - // "commonName": "2.5.4.3", - "surname": "2.5.4.4", - // "serialnumber": "2.5.4.5", - "countryName": "2.5.4.6", - "localityName": "2.5.4.7", - "stateOrProvinceName": "2.5.4.8", + // https://www.alvestrand.no/objectid/2.5.4.html + ATTRIBUTES = { + "organization": "2.5.4.10", + "organizationUnit": "2.5.4.11", + "country": "2.5.4.6", + "locality": "2.5.4.7", + "stateOrProvince": "2.5.4.8", "streetAddress": "2.5.4.9", - "organizationName": "2.5.4.10", - "organizationalUnitName": "2.5.4.11", + "postalCode": "2.5.4.17", + "title": "2.5.4.12", "description": "2.5.4.13", "businessCategory": "2.5.4.15", - "postalCode": "2.5.4.17", + "givenName": "2.5.4.42", - "jurisdictionOfIncorporationStateOrProvinceName": "1.3.6.1.4.1.311.60.2.1.2", - "jurisdictionOfIncorporationCountryName": "1.3.6.1.4.1.311.60.2.1.3", + "surname": "2.5.4.4", }, CERTIFICATES_RESOURCE = await externalResources.add( "softvisio-node/core/resources/certificates" ).check();