aboutsummaryrefslogtreecommitdiffstats
path: root/ssl/README.md
blob: efba6107df1351d01e7b2a91ba726bfedd6a0fc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Generating SSL certificates

Typical usage:

```shell
make FILE=client
make FILE=server
```

Will generate CA certificate and signed client and server certificates.

More "low-level" usage:

```shell
make generate-ca-certificate
make generate-private-key FILE=client 
make sign FILE=client
```

# Connecting to a server

First generate *client* and *server* certificates. Then start a server with it's cert and make ca.crt a trusted certification authority.

After that you can:

```shell
./connect.sh client localhost:8600 < file_with_a_data_to_be_sent.dat
```