Skip to content

crypto: fix X509Certificate toLegacyObject

toLegacyObject() is supposed to return a legacy object but currently does not. Namely, the subject, issuer, and infoAccess properties should not be strings.

This addresses the following TODO:

https://github.com/nodejs/node/blob/626367c4e3b57dab3e6c1e9926cc24e2d662e14a/src/crypto/crypto_common.cc#L1325-L1327

Side note: the existing @types/node definitions match the documentation, not the implementation.

Merge request reports

Loading