OpenSSL cookbook with x509 generation