Instructions on generating .pem files
This commit is contained in:
parent
ed72ac9961
commit
24b68ce01f
|
@ -0,0 +1 @@
|
|||
*.pem
|
|
@ -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
|
||||
```
|
Loading…
Reference in New Issue