You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
322 B
10 lines
322 B
#!/bin/bash
|
|
|
|
PROJECT="dtp-newsroom"
|
|
rm -f *crt *key
|
|
|
|
openssl genrsa -out ${PROJECT}.key
|
|
openssl req -new -out ${PROJECT}.csr -key ${PROJECT}.key -config ${PROJECT}.cnf
|
|
openssl x509 -req -days 3650 -in ${PROJECT}.csr -signkey ${PROJECT}.key -out ${PROJECT}.crt -extensions v3_req -extfile ${PROJECT}.cnf
|
|
|
|
rm ${PROJECT}.csr
|
|
|