generate certificate from public key openssl code example
Example: generate key and certificate openssl
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365