mirror of https://github.com/D4-project/d4-core
self-signed certificate generation script
parent
6472ba8a21
commit
9bd32a5cc5
|
@ -0,0 +1,4 @@
|
|||
*.crt
|
||||
*.csr
|
||||
*.pem
|
||||
*.key
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
openssl genrsa -out server.key 2048
|
||||
openssl req -sha256 -new -key server.key -out server.csr -subj '/CN=localhost'
|
||||
openssl x509 -req -sha256 -days 365 -in server.csr -signkey server.key -out server.crt
|
||||
cat server.crt server.key > server.pem
|
Loading…
Reference in New Issue