PKI.js is a pure JavaScript library implementing the formats that are used in PKI applications (signing, encryption, certificate requests, OCSP and TSP requests/responses). It is built on WebCrypto (Web Cryptography API) and requires no plug-ins.
Certificate schema has subjectUniqueID and empty extensions
TypeError: Cannot read property 'toSchema' of undefined
at Certificate.encodeTBS (node_modules/pkijs/src/Certificate.js:443:29)
at Certificate.toSchema (node_modules/pkijs/src/Certificate.js:488:21)
Cannot encode SubjectUniqueID for Certificate
Certificate schema has subjectUniqueID and empty extensions
IssuerUniqueID works fine
There are 2
subjectUniqueID
implementations inencodeTBS
method https://github.com/PeculiarVentures/PKI.js/blob/master/src/Certificate.js#L423-L445test app