Sample TCP server-client implementation using openssl in ruby
Use the wrapper shell script to create ssl certificates ./openssl.sh -newca
, enter the details and the required files will be generated to ./demoCA
dir from where you run the script. cacert.pem
will be your ssl-certificate and private/cakey.pem
will be your ssl-key
Start SSL Server using:
ruby ssl_server.rb 9099 demoCA/cacert.pem demoCA/private/cakey.pem