README.md : added Openssl self-signed certificate

This commit is contained in:
saundersp 2024-07-27 16:53:26 +02:00
parent 40e4edc574
commit d7f00c92da

View File

@ -187,3 +187,14 @@ chmod 600 /home/$USER/.XDG/data/gnupg/$PUBLIC_KEY
gpg --verify $SIGNATURE.sig $FILE gpg --verify $SIGNATURE.sig $FILE
``` ```
### Self-signed OpenSSL
#### interactive
```sh
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 365
```
#### non-interactive and 10 years expiration
```sh
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 3650 -nodes -subj '/C=XX/ST=StateName/L=CityName/O=CompanyName/OU=CompanySectionName/CN=CommonNameOrHostname'
```