/ssl-information

Get information about any SSL certificate.

Primary LanguageTypeScriptMIT LicenseMIT

SSL-INFORMATION

GitHub license GitHub stars Version npm

Get the information about any SSL certificate.

How to install?

 npm i ssl-information

How to use?

const {
    certManager
} = require('ssl-information')

certManager
    .get({
        host: 'andresmorelos.dev'
    })
    .then((cert) => console.log(cert))
    .catch((err) => console.error(err));

Request Options

Name Required Default
host true None
port false 443
method false GET
path false undefined

Certificate Object

{ 
    subject: Object;
    issuer: Object;
    subjectaltname: string;
    infoAccess: Array<String>;
    modulus: string;
    exponent: string;
    valid_from: string;
    valid_to: string;
    fingerprint: string;
    fingerprint256: string;
    ext_key_usage: Array<String>;
    serialNumber: string;
    raw: Buffer;
    isValid: boolean;
    content: string; // Parse raw content
}