litespeedtech / openlitespeed

Our high-performance, lightweight, open source HTTP server
https://openlitespeed.org
GNU General Public License v3.0
1.2k stars 194 forks source link

possible to do automatic letsencrypt on the system? like an autocert for domain name hosting companies #196

Open gitmko0 opened 4 years ago

gitmko0 commented 4 years ago

possible to do automatic letsencrypt on the system? like an autocert for domain name hosting companies

MaximKing1 commented 3 years ago

+1

jimmydinamika commented 3 years ago

+1

FatGrizzly commented 3 years ago

+1 Possibly also feature to edit the acme directory

meramsey commented 3 years ago

https://openlitespeed.org/kb/lets-encrypt-ssl-on-openlitespeed/ Seems totally possible. Parse hostnames from vhost and check config check SSL cert path for that domain

If you didn't need it to let it configure acme or letsencrypt path it would be even easier. It could just have a sane default like in this config as the default. https://github.com/meramsey/blaqpanel/blob/main/lsws/conf/vhosts/vhost.conf#L111-L113

Then check if the domain resolves to the server's IP already and if so then proceed to run the request via the SNAP LE or ACME.sh client

Would make for a relatively easy killer feature.

I did a similiar thing to check if domain resolved to server externally in bash for the cyberpanel ACME wrapper during installer here. https://github.com/usmannasir/cyberpanel/blob/stable/cyberpanel.sh#L1863-L1864

Obviously as the core of this is C based there are probably sleeker ways unless they wanted to handle it via the WEBUI maybe in PHP?