zalando-ca

A package to access Zalando Public CA

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
zalando-ca
2.1.16 years ago7 years agoMinified + gzip package size for zalando-ca in KB

Readme

zalando-ca
This package is just a convenience to be able to call all services, both using Zalando CA and all regular CA authorities for which it uses a dump from Ubuntu certificates.

Usage

Add the package to your node app.
npm i --save zalando-ca

Require the CAs and use them in your request
const ca = require('zalando-ca').load();
const https = require('https');

const request = https.request({
    hostname: 'some-zalando-endpoint.com',
    ca: ca
}, function (response) {
    console.log(response.statusCode);
});
request.end();