1 changed files with 6 additions and 4 deletions
@ -1,9 +1,11 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
|
|
||||
|
DTP_PROJECT=dtp-base |
||||
|
|
||||
rm -f *crt *key |
rm -f *crt *key |
||||
|
|
||||
openssl genrsa -out dtp-base.key |
openssl genrsa -out ${DTP_PROJECT}.key |
||||
openssl req -new -out dtp-base.csr -key dtp-base.key -config openssl.cnf |
openssl req -new -out ${DTP_PROJECT}.csr -key ${DTP_PROJECT}.key -config openssl.cnf |
||||
openssl x509 -req -days 3650 -in dtp-base.csr -signkey dtp-base.key -out dtp-base.crt -extensions v3_req -extfile openssl.cnf |
openssl x509 -req -days 3650 -in ${DTP_PROJECT}.csr -signkey ${DTP_PROJECT}.key -out ${DTP_PROJECT}.crt -extensions v3_req -extfile openssl.cnf |
||||
|
|
||||
rm dtp-base.csr |
rm ${DTP_PROJECT}.csr |
Loading…
Reference in new issue