method X509Certificate.prototype.toJSONX509Certificate.prototype.toJSON(): stringDeprecatedThere is no standard JSON encoding for X509 certificates. ThetoJSON() method returns a string containing the PEM encoded certificate. Return Typestring