ssl-information
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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
}

Package Sidebar

Install

npm i ssl-information

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

8.96 kB

Total Files

13

Last publish

Collaborators

  • andresmorelos