Generates a self-signed CA and then uses it to
sign a new certificate. The files produced are:
ca-key.pem - CA's private key
cacert.pem - CA's certificate
cert.pem - certificate corresponding to key.pem signed with the CA above
key.pem - generated private key