#!/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. # # You can also use the sslcacertificatefile options to point the client/server # at rootcert.pem instead of populating the global repository # [ -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