PeculiarVentures / x509

@peculiar/x509 is an easy to use TypeScript/Javascript library based on @peculiar/asn1-schema that makes generating X.509 Certificates and Certificate Requests as well as validating certificate chains easy
https://peculiarventures.github.io/x509/
MIT License
78 stars 10 forks source link

X509Certificates export format missing eContentType value #29

Closed leestkly closed 1 year ago

leestkly commented 1 year ago

This PR addresses issue #28

microshine commented 1 year ago

@peculiar/x509@1.7.3 has been published. It also fixes CMS version and adds a zero-length OctetString into SignedData.encapContentInfo.eContent

SEQUENCE (2 elem)
  OBJECT IDENTIFIER 1.2.840.113549.1.7.2 signedData (PKCS #7)
  [0] (1 elem)
    SEQUENCE (5 elem)
      INTEGER 1
      SET (0 elem)
      SEQUENCE (2 elem)
        OBJECT IDENTIFIER 1.2.840.113549.1.7.1 data (PKCS #7)
        [0] (1 elem)
          OCTET STRING (0 byte)

@leestkly thank you for your PR