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:
Side note: the existing @types/node
definitions match the documentation, not the implementation.