Never Print Magazines

    ssl-checker
    TypeScript icon, indicating that this package has built-in type declarations

    2.0.7 • Public • Published

    Node SSL Checker

    Build Status npm version npm Codacy Badge Codacy Badge

    Installation

    Simply add ssl-checker as a dependency:

    $ npm install ssl-checker --save # npm i -s ssl-checker 
     
    # Or if you prefer using yarn (https://yarnpkg.com/lang/en/) 
    $ yarn add ssl-checker

    Usage

    import sslChecker from "ssl-checker";
     
    const getSslDetails = async (hostname: string) =>
      await sslChecker(hostname`ex. badssl.com`);

    Options

    All valid https.RequestOptions values.

    Option Default Description
    method HEAD Can be GET too
    port 443 Your SSL/TLS entry point
    agent default Default HTTPS agent with { maxCachedSessions: 0 }
    rejectUnauthorized false Skips authorization by default
    sslChecker("dyaa.me", { method: "GET", port: 443 }).then(console.info);

    Response Example

    {
      "daysRemaining": 90,
      "valid": true,
      "validFrom": "issue date",
      "validTo": "expiry date",
      "validFor": ["www.example.com", "example.com"]
    }

    License

    Copylefted (c) 8008 :trollface: Dyaa Eldin Moustafa Licensed under the MIT license.

    Keywords

    Install

    npm i ssl-checker

    DownloadsWeekly Downloads

    2,359

    Version

    2.0.7

    License

    MIT

    Unpacked Size

    15.9 kB

    Total Files

    7

    Last publish

    Collaborators

    • dyaa