Merge pull request #29 from seanthegeek/patch-1

Remove dhparams.pem and chain.pem check
pull/1/head
Jason Kendall 2020-02-24 19:35:39 -05:00 committed by GitHub
commit 72881df281
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 6 deletions

View File

@ -55,14 +55,10 @@ init_misp_files(){
}
init_ssl() {
if [[ (! -f /etc/ssl/dhparams.pem) ||
(! -f /etc/ssl/cert.pem) ||
(! -f /etc/ssl/key.pem) ||
(! -f /etc/ssl/chain.pem) ]]; then
if [[ (! -f /etc/ssl/cert.pem) ||
(! -f /etc/ssl/key.pem) ]]; then
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
cp cert.pem chain.pem
fi
}