Get the information about any SSL certificate.
npm i ssl-information
const {
certManager
} = require('ssl-information')
certManager
.get({
host: 'andresmorelos.dev'
})
.then((cert) => console.log(cert))
.catch((err) => console.error(err));
Name | Required | Default |
---|---|---|
host | true | None |
port | false | 443 |
method | false | GET |
path | false | undefined |
{
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
}