PeculiarVentures / asn1-schema

asn1-schema is a collection of TypeScript schemas that make working with common ASN.1 objects easy
32 stars 11 forks source link

Add support SubjectInfoAccess extension #69

Closed donskov closed 2 years ago

donskov commented 2 years ago

SubjectInfoAccess extension test reference: https://lapo.it/asn1js/#MEcwRQYIKwYBBQUHMAWGOWh0dHA6Ly9pcGtpLnVzcHRvLmdvdi9JUEtJL0NlcnRzL0NBY2VydHNJc3N1ZWRCeVVTUFRPLnA3Yw

Schema:

id-pe-subjectInfoAccess OBJECT IDENTIFIER ::= { id-pe 11 }

   SubjectInfoAccessSyntax  ::=
           SEQUENCE SIZE (1..MAX) OF AccessDescription

   AccessDescription  ::=  SEQUENCE {
           accessMethod          OBJECT IDENTIFIER,
           accessLocation        GeneralName  }

@microshine What do you think about supporting this extension?

microshine commented 2 years ago
SubjectInfoAccessSyntax(1) [
  AccessDescription {
    accessMethod: '1.3.6.1.5.5.7.48.5',
    accessLocation: GeneralName {
      uniformResourceIdentifier: 'http://ipki.uspto.gov/IPKI/Certs/CAcertsIssuedByUSPTO.p7c'
    }
  }
]
microshine commented 2 years ago

@peculiar/asn1-x509@2.1.4 has been published