Closed CMCDragonkai closed 1 year ago
Since KeyUsagesExtension has all the flags already built in, why not add in the basic OIDs for extended key usage?
KeyUsagesExtension
const serverAuth = '1.3.6.1.5.5.7.3.1'; const clientAuth = '1.3.6.1.5.5.7.3.2'; const codeSigning = '1.3.6.1.5.5.7.3.3'; const emailProtection = '1.3.6.1.5.5.7.3.4'; const timeStamping = '1.3.6.1.5.5.7.3.8'; const ocspSigning = '1.3.6.1.5.5.7.3.9'; new x509.ExtendedKeyUsageExtension( [ serverAuth, clientAuth, codeSigning, emailProtection, timeStamping, ocspSigning ] );
Since
KeyUsagesExtension
has all the flags already built in, why not add in the basic OIDs for extended key usage?