www

https://garbash.com/~alex/
git clone git://git.garbash.com/alex/www
Log | Files | Refs | README | LICENSE

003-httpd.txt (788B)


      1 003-httpd -- Tues Sept 21, 2021
      2 
      3 One of the first things I do when I set up a machine is set up
      4 httpd(8) and grab a HTTPS cert via acme-client(8).
      5 
      6 Here's a quick rundown (though reading the man pages is worth
      7 the time!).
      8 
      9 	# sed 's/example.com/garbash.com/g' \
     10 	    /etc/examples/httpd.conf > /etc/httpd.conf
     11 	# sed 's/example.com/garbash.com/g' \
     12 	    /etc/examples/acme-client.conf > /etc/acme-client.conf
     13 
     14 Then go in and edit the files to add aliases if needed!
     15 
     16 To get the certs for the first time:
     17 
     18 	# rcctl enable httpd
     19 	# rcctl start httpd
     20 	# acme-client -v garbash.com   # get certs
     21 	# rcctl reload httpd           # load certs
     22 
     23 Finally, to keep the certs up to date, add the following to the
     24 crontab:
     25 
     26 	# crontab -e
     27 	...
     28 	~ * * * * acme-client garbash.com && rcctl reload httpd