Instructions on generating .pem files

This commit is contained in:
MatthiasSaihttam 2021-08-28 14:41:47 -04:00
parent ed72ac9961
commit 24b68ce01f
2 changed files with 13 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.pem

12
README.md Normal file
View File

@ -0,0 +1,12 @@
### Creating certificates for dev
```sh
# Generate private key
openssl genrsa -out private-key.pem 2048
# Generate cert. signing request
# All fields can be left blank except for Common Name, where I enter "localhost"
openssl req -new -sha256 -key private-key.pem -out csr.pem
# Self-sign, generating cert
openssl x509 -req -in csr.pem -signkey private-key.pem -out public-cert.pem
```