README.md : added Openssl self-signed certificate
This commit is contained in:
parent
40e4edc574
commit
d7f00c92da
11
README.md
11
README.md
@ -187,3 +187,14 @@ chmod 600 /home/$USER/.XDG/data/gnupg/$PUBLIC_KEY
|
||||
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'
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user