#!/bin/sh # # This is a "simple" script that I've used to create test certificates # for conserver and it's OpenSSL bits. It's far from perfect...or useful # outside of my own purposes. If this helps, cool. In the end I put the # rootcert.pem file in my global certs directory (OPENSSL_ROOT/ssl/certs), # point the server to server.pem and point the client at client.pem. I # then run the c_rehash command (I supposed it helps or is important). # When it asks for a passphrase, use 'pass', otherwise this script won't # work. Ugly, yeah, but it's an ok test. # [ -f rootreq.pem -a -f rootkey.pem ] || cat < root.pem [ -f serverreq.pem -a -f serverkey.pem ] || cat < server.pem [ -f clientreq.pem -a -f clientkey.pem ] || cat < client.pem