
openssl:ai:79f7c
How create self-hosted certificate
$ openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 365 -out certificate.pem
try on your machine
This command generates a self-signed certificate using OpenSSL. It creates a private key file (key.pem) and a self-signed certificate file (certificate.pem) that are valid for 365 days.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.
Questions that are answered by this command:
- How create self-hosted certificate?