Skip to main content
X509Certificate.prototype.toJSON - Node documentation
method X509Certificate.prototype.toJSON

Usage in Deno

import { X509Certificate } from "node:crypto";
X509Certificate.prototype.toJSON(): string

There is no standard JSON encoding for X509 certificates. ThetoJSON() method returns a string containing the PEM encoded certificate.

Return Type

string