maximilian-krauss / respect-mah-authoritah

Respect mah authoritah

Home Page:https://max.krauss.io/respect-your-authority/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Test NODE_EXTRA_CA_CERTS

Respect mah authoritah

License

First things first: Most of the code is copied from nodejs-self-signed-certificate-example by AJ ONeal. It's a great starter for anyone interested in how to create an own certificate authority and how to deal with OpenSSL.

What's this

This repo will show you that the environment variable NODE_EXTRA_CA_CERTS actually works.

If you run test.sh it will create CA certificates and a signed certificate for localhost, then it starts an node.js HTTPS server and connects to it. All should happen without any warnings because we exported the certificate chain via the environment variable NODE_EXTRA_CA_CERTS 🔐

About

Respect mah authoritah

https://max.krauss.io/respect-your-authority/

License:Other


Languages

Language:Shell 71.9%Language:JavaScript 28.1%