createOpenSSLCACertificate was not creating CA and cert correctly