I have generated private key and public cert using the openssl command:
openssl req -x509 -newkey rsa:4096 -keyout private_key.pem -out public_cert.pem -nodes