Skip to content

Commit

Permalink
chore: refactor certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
zdm committed Dec 24, 2024
1 parent 6cacca6 commit b87043c
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions lib/certificates.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit b87043c

Please sign in to comment.