{"repo":"Dexus/pem","free":true,"listed":false,"github":"https://github.com/Dexus/pem","clone":"git clone https://github.com/Dexus/pem.git","description":"Create private keys and certificates with node.js","language":"JavaScript","stars":573,"topics":["certificate","javascript","csr","certificate-signing-request","tls-certificate","tls","signing","pem","ssl-certificate","ssl"],"license":null,"category":"deployment-docker-iac","readme_excerpt":"pem === Create private keys and certificates with node.js Installation Install with npm npm install pem or use yarn yarn add pem :warning: Please make sure you have openssl or libressl already installed on your system/container, without them pem will not work. TypeScript TypeScript declaration files are bundled with the package via types/pem.d.ts . The public API, including the legacy promisified helpers and the CA utility, now has precise typings. Run yarn test:types to execute the lightweight tsd assertions that guard the definitions. Examples Here are some examples for creating an SSL key/cert on the fly, and running an HTTPS server on port 443. 443 is the standard HTTPS port, but requires root permissions on most systems. To get around this, you could use a higher port number, like 4300, and use https://localhost:4300 to access your server. Promise support: Every asynchronous function in pem still accepts a Node-style callback and now returns a Promise when no callback is provided. The legacy pem.promisified helper is deprecated; use the primary exports directly for both callback and promise flows. Basic https Express Basic https with async/await API Please have a look into the API documentation. All asynchronous functions document below support both callback and promise styles. Invoke them without a callback to receive a Promise that resolves to the same value that would be passed to the callback. we had to clean up a bit Issue certificates with an existing Certificate A","default_branch":null,"files":null,"tree":[],"storefront":"/r/Dexus","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Dexus/pem/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}