Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
class X509Certificate
import { X509Certificate } from "https://deno.land/std@0.151.0/node/internal/crypto/x509.ts";

Constructors

new
X509Certificate(buffer: BinaryLike)

Properties

readonly
ca: boolean
readonly
fingerprint: string
readonly
fingerprint256: string
readonly
fingerprint512: string
readonly
infoAccess: string | undefined
readonly
issuer: string
readonly
issuerCertificate: X509Certificate | undefined
readonly
keyUsage: string[]
readonly
publicKey: KeyObject
readonly
raw: Buffer
readonly
serialNumber: string
readonly
subject: string
readonly
subjectAltName: string | undefined
readonly
validFrom: string
readonly
validTo: string

Methods

checkEmail(_email: string, _options?: Pick<X509CheckOptions, "subject">): string | undefined
checkHost(_name: string, _options?: X509CheckOptions): string | undefined
checkIP(_ip: string): string | undefined
checkIssued(_otherCert: X509Certificate): boolean
checkPrivateKey(_privateKey: KeyObject): boolean
toJSON(): string
toString(): string
verify(_publicKey: KeyObject): boolean