Package Exports
- ssl-information
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ssl-information) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
SSL-INFORMATION
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
}