1 # Generating SSL certificates
3 ## Java keytool way (recommended)
11 To clean (remove generated files):
17 ## OpenSSL way (currently might not work)
19 > Add `-f Makefile-openssl` to each command
28 or (to generate PKCS12 key and trust stores):
31 make create-key-store FILE=client
32 make create-key-store FILE=server
33 make create-trust-store
36 Will generate CA certificate and signed client and server certificates.
38 More "low-level" usage:
41 make generate-ca-certificate
42 make generate-private-key FILE=client
46 # Connecting to a server
48 First generate *client* and *server* certificates. Then start a server with it's cert and make ca.crt a trusted certification authority.
53 ./connect.sh client localhost:8600 < file_with_a_data_to_be_sent.dat