1.0.3 • Published 5 years ago
ssl-information v1.0.3
SSL-INFORMATION
Get the information about any SSL certificate.
How to install?
npm i ssl-informationHow 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
}