1.0.3 • Published 3 years ago

ssl-information v1.0.3

Weekly downloads
13
License
MIT
Repository
github
Last release
3 years ago

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

NameRequiredDefault
hosttrueNone
portfalse443
methodfalseGET
pathfalseundefined

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
}
1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago