node-ipc/example/TLSSocket/readme.md

26 lines
920 B
Markdown
Raw Normal View History

2015-09-28 15:59:25 +10:00
# Using TLS and SSL for Secure node-ipc
### document in progress
Still working on this. If you look at the examples and can help, please jump right in.
#### important cli commands
- openssl genrsa -out server.key 2048
- openssl req -new -x509 -key server.key -out server.pub -days 365 -config openssl.cnf
2016-09-11 08:09:44 +10:00
- openssl req -new -x509 -key client.key -out client.pub -days 365 -config openssl.cnf
2015-09-28 15:59:25 +10:00
- talk about openssl.cnf edits
#### using the local node-ipc certs
This should **ONLY** be done on your local machine. Both the public and private certs are available here on git hub, so its not a good idea to use them over the network.
#### talk about security
2016-09-11 08:09:44 +10:00
- keep private keys private, don't share
2015-09-28 15:59:25 +10:00
#### talk about using hostname not ip for best security validation of certs
#### examples
- basic with default keys
- specikfying keys
- encrypted but venerable to man in the middle
- two way authenticated pub private