dead simple cert composition for custom http(s) agents


1.0.05 years ago5 years agoMinified + gzip package size for @gasbuddy/composert in KB



Split and concat pem-encoded certs to be supplied as a CA list to an HTTPS agent.


(require("@gasbuddy/composert"))(...path, [callback]) ⇒ undefined | Promise

Split pem-encoded crts into individual certs in an array

Kind: Exported function
Returns: undefined | Promise - returns a Promise if callback not provided

Param Type Description
...path string fs path to a .pem.crt
[callback] function an optional callback

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.