tree: 2df295454f12b757f8272d4a7dd47d8035d0e171 [path history] [tgz]
  1. .gitignore
  2. gen-certs.sh
  3. Makefile-openssl
  4. README.md
tools/ssl/README.md

Generating SSL certificates

Java keytool way (recommended)

To generate:

./gen-certs.sh

To clean (remove generated files):

./gen-certs.sh clean

OpenSSL way (currently might not work)

Add -f Makefile-openssl to each command

Typical usage:

make FILE=client
make FILE=server

or (to generate PKCS12 key and trust stores):

make create-key-store FILE=client
make create-key-store FILE=server
make create-trust-store

Will generate CA certificate and signed client and server certificates.

More "low-level" usage:

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:

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