Skip to content

Commit

Permalink
SSL funciona com chave auto-assinada, porta 1443, pois não queremos root
Browse files Browse the repository at this point in the history
  • Loading branch information
felipebastos committed Oct 18, 2020
1 parent 860c2a2 commit 07b63ba
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ssl.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
cd ~/lighttpd/etc
mkdir certs
cd certs
`openssl req -new -x509 -keyout lighttpd.pem -out lighttpd.pem -days 365 -nodes`
chmod 400 lighttpd.pem
cd ~/lighttpd
printf 'server.modules += ("mod_openssl")
$SERVER["socket"] == ":1443" {
ssl.engine = "enable"
ssl.pemfile = "'>>etc/lighttpd.conf
printf $HOME>>etc/lighttpd.conf
echo '/lighttpd/etc/certs/lighttpd.pem"
}'>>etc/lighttpd.conf

0 comments on commit 07b63ba

Please sign in to comment.