JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2833
  • Score
    100M100P100Q127890F
  • License MIT

A micro-library that returns a website's SSL certificate

Package Exports

  • get-ssl-certificate

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 (get-ssl-certificate) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

get-ssl-certificate

A micro-library that returns a website's SSL certificate

Build Status Coverage Status Code Climate npm

Installation

npm install --save get-ssl-certificate

Usage

Import package:

var sslCertficate = require('get-ssl-certificate');

Pass a url / domain name:

sslCertificate.get('nodejs.org').then(function (certificate) {
  console.log(certificate);
  // certificate is a JavaScript object

  console.log(certificate.issuer);
  // { C: 'GB',
  //   ST: 'Greater Manchester',
  //   L: 'Salford',
  //   O: 'COMODO CA Limited',
  //   CN: 'COMODO RSA Domain Validation Secure Server CA' }

  console.log(certificate.valid_from)
  // 'Nov  8 00:00:00 2015 GMT'

  console.log(certificate.valid_to)
  // 'Aug 22 23:59:59 2017 GMT'
});

License

MIT