forked from mirror/openmw-tes3mp
[Master] Add scripts for generating certificates for testing purposes
This commit is contained in:
parent
aee6fb1265
commit
f99dafbf51
3 changed files with 15 additions and 0 deletions
3
files/tes3mp/master/cert/.gitignore
vendored
Normal file
3
files/tes3mp/master/cert/.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
rootCA.*
|
||||||
|
master.*
|
||||||
|
serial
|
3
files/tes3mp/master/cert/genCA.sh
Executable file
3
files/tes3mp/master/cert/genCA.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
openssl genrsa -out rootCA.key 2048
|
||||||
|
openssl req -x509 -new -key rootCA.key -days 365 -out rootCA.crt
|
||||||
|
|
9
files/tes3mp/master/cert/genCert.sh
Executable file
9
files/tes3mp/master/cert/genCert.sh
Executable file
|
@ -0,0 +1,9 @@
|
||||||
|
openssl genrsa -des3 -out master.des3.key 4096
|
||||||
|
openssl rsa -in master.des3.key -out master.key
|
||||||
|
openssl req -new -key master.key -out master.csr -reqexts SAN -config master.conf
|
||||||
|
|
||||||
|
openssl x509 -req -days 365 -in master.csr -CA rootCA.crt -CAkey rootCA.key -CAcreateserial -out master.crt -extensions SAN -extfile master.conf
|
||||||
|
|
||||||
|
|
||||||
|
openssl pkcs12 -export -clcerts -in master.crt -inkey master.key -out master.p12
|
||||||
|
openssl pkcs12 -in master.p12 -out master.pem -clcerts
|
Loading…
Reference in a new issue