Create a self-signed X.509 certificate.
the options defining the certificate to create
the private key used for signing, i.e. the key associated with this self-signed certificate
the hash function to use
the rng to use
newly created self-signed certificate
See Implementation
Create a self-signed X.509 certificate.