https://github.com/valerybugakov/nodejs-ssl-example
https://github.com/valerybugakov/nodejs-ssl-example
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/valerybugakov/nodejs-ssl-example
- Owner: valerybugakov
- Created: 2016-02-15T20:10:18.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-17T16:32:36.000Z (about 10 years ago)
- Last Synced: 2025-01-17T15:32:19.445Z (over 1 year ago)
- Language: JavaScript
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
HTTPS 2048-bit RSA TLS/SSL Cert Example
====
This is targeted towards people who are using io.js / node.js,
but as far as generating and testing certs, these are the exact
same **openssl** commands you'd use with any language.
Usage
========
1. Server machine
------------
Generate CA, key and certificate. Load them to updater machine.
```
git clone https://github.com/valerybugakov/nodejs-ssl-example.git
npm install
./gen.sh YOUR_CNAME_HERE
scp -r certs root@YOUR_CNAME_HERE:/root/nodejs-ssl-example/certs
node showrequests.js
```
2. Updater machine
------------
```
git clone https://github.com/valerybugakov/nodejs-ssl-example.git
npm install
node updater.js
```
Add CNAME to software_config.json `{ brain: updater: host: CNAME }`
Add CNAME to hosts file if necessary.