mirror of https://github.com/MISP/misp-docker
Remove dhparams.pem and chain.pem check
These files are not needed with the new nginx configpull/1/head
parent
555b8e4c64
commit
19a634763d
|
@ -66,12 +66,9 @@ init_misp_files(){
|
||||||
}
|
}
|
||||||
|
|
||||||
init_ssl() {
|
init_ssl() {
|
||||||
if [[ (! -f /etc/ssl/dhparams.pem) ||
|
if [[ (! -f /etc/ssl/cert.pem) ||
|
||||||
(! -f /etc/ssl/cert.pem) ||
|
(! -f /etc/ssl/key.pem) ]]; then
|
||||||
(! -f /etc/ssl/key.pem) ||
|
|
||||||
(! -f /etc/ssl/chain.pem) ]]; then
|
|
||||||
cd /etc/ssl
|
cd /etc/ssl
|
||||||
openssl dhparam -out dhparams.pem 2048
|
|
||||||
openssl req -x509 -subj '/CN=localhost' -nodes -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365
|
openssl req -x509 -subj '/CN=localhost' -nodes -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365
|
||||||
cp cert.pem chain.pem
|
cp cert.pem chain.pem
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue