Creating a self-signed certificate with an RSA key