If you are generating a self signed cert, you can do both the key and cert in one command like so:
openssl req -nodes -new -x509 -keyout server.key -out server.cert
Tags
Asp.net Core
If you are generating a self signed cert, you can do both the key and cert in one command like so:
openssl req -nodes -new -x509 -keyout server.key -out server.cert