🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

ssl-information

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ssl-information

Get SSL certificate information

1.0.3
latest
Source
npm
Version published
Maintainers
1
Created
Source

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
}

Keywords

SSL

FAQs

Package last updated on 03 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts