Browse Source

use letsencrypt naming convention, and more recent localhost.daplie.com

master
AJ ONeal 8 years ago
committed by GitHub
parent
commit
37c8573714
  1. 26
      README.md

26
README.md

@ -54,14 +54,16 @@ certs/
│   ├── my-root-ca.key.pem │   ├── my-root-ca.key.pem
│   └── my-root-ca.srl │   └── my-root-ca.srl
├── client ├── client
│   ├── my-root-ca.crt.pem │   ├── chain.pem
│   └── my-server.pub │   └── my-server.pub
├── server ├── server
│   ├── my-root-ca.crt.pem │   ├── my-root-ca.crt.pem
│   ├── my-server.crt.pem │   ├── cert.pem
│   └── my-server.key.pem │   ├── chain.pem
│   ├── fullchain.pem
│   └── privkey.pem
└── tmp └── tmp
└── my-server.csr.pem └── csr.pem
``` ```
### Run the server ### Run the server
@ -83,17 +85,17 @@ node ./request-without-warnings.js 8043
Test (warning free) with cURL Test (warning free) with cURL
```bash ```bash
curl -v https://local.ldsconnect.org \ curl -v https://localhost.daplie.com \
--cacert client/my-root-ca.crt.pem --cacert client/chain.pem
``` ```
Visit in a web browser Visit in a web browser
<https://local.ldsconnect.org> <https://localhost.daplie.com>
To get rid of the warnings, simply add the certificate in the `client` folder To get rid of the warnings, simply add the certificate in the `client` folder
to your list of certificates by alt-clicking "Open With => Keychain Access" to your list of certificates by alt-clicking "Open With => Keychain Access"
on `my-root-ca.crt.pem` on `chain.pem`
You do have to set `Always Trust` a few times You do have to set `Always Trust` a few times
[as explained](http://www.robpeck.com/2010/10/google-chrome-mac-os-x-and-self-signed-ssl-certificates/#.U8RqrI1dVd8) by Rob Peck. [as explained](http://www.robpeck.com/2010/10/google-chrome-mac-os-x-and-self-signed-ssl-certificates/#.U8RqrI1dVd8) by Rob Peck.
@ -102,7 +104,7 @@ Now season to taste
--- ---
You can poke around in the files for generating the certificates, You can poke around in the files for generating the certificates,
but all you really have to do is replace `local.ldsconnect.org` but all you really have to do is replace `localhost.daplie.com`
with your very own domain name. with your very own domain name.
But where's the magic? But where's the magic?
@ -127,9 +129,9 @@ Other SSL Resources
Zero-Config clone 'n' run (tm) Repos: Zero-Config clone 'n' run (tm) Repos:
* [io.js / node.js HTTPS SSL Example](https://github.com/coolaj86/nodejs-ssl-example) * [node.js HTTPS SSL Example](https://github.com/coolaj86/nodejs-ssl-example)
* [io.js / node.js HTTPS SSL Self-Signed Certificate Example](https://github.com/coolaj86/nodejs-self-signed-certificate-example) * [node.js HTTPS SSL Self-Signed Certificate Example](https://github.com/coolaj86/nodejs-self-signed-certificate-example)
* [io.js / node.js HTTPS SSL Trusted Peer Client Certificate Example](https://github.com/coolaj86/nodejs-ssl-trusted-peer-example) * [node.js HTTPS SSL Trusted Peer Client Certificate Example](https://github.com/coolaj86/nodejs-ssl-trusted-peer-example)
* [SSL Root CAs](https://github.com/coolaj86/node-ssl-root-cas) * [SSL Root CAs](https://github.com/coolaj86/node-ssl-root-cas)
Articles Articles

Loading…
Cancel
Save