generateCertificate

private fun generateCertificate(keyPair: KeyPair, subject: String): X509Certificate