Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/beeven/https-server-clients
https://github.com/beeven/https-server-clients
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/beeven/https-server-clients
- Owner: beeven
- Created: 2015-08-12T09:59:16.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-15T15:47:45.000Z (over 9 years ago)
- Last Synced: 2024-04-18T13:24:46.156Z (9 months ago)
- Language: Python
- Size: 3.1 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Https Server and Clients
=============Https server in nodejs, requiring client certificates.
And https clients written in python, nodejs, c#, java.
## How to make certificates
### CA certificate
```bash
openssl genrsa -des3 -out ca.key 2048
openssl req -new -x509 -key ca.key -out ca.cer -days 1095
```### Server certificate
```bash
openssl req -new -newkey rsa:2048 -nodes -out server.csr -keyout server.key -config server.cnf
openssl x509 -req -in server.csr -CA ca.cer -CAkey ca.key -out server.cer -days 1095 -set_serial 1002 -extfile server.cnf -extensions v3_req
```### Client certificate
```bash
openssl req -new -newkey rsa:2048 -nodes -out client.csr -keyout client.key
openssl x509 -req -in client.csr -CA ca.cer -CAkey ca.key -out client.cer -days 1095 -set_serial 1003openssl pkcs12 -export -inkey client.key -in client.cer -out client.pfx -CAfile ca.cer
```