openlitespeed icon indicating copy to clipboard operation
openlitespeed copied to clipboard

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

Open gitmko0 opened this issue 4 years ago • 4 comments

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

gitmko0 avatar Aug 29 '20 17:08 gitmko0

+1

MaximKing1 avatar Jun 02 '21 00:06 MaximKing1

+1

jimmydinamika avatar Jun 25 '21 06:06 jimmydinamika

+1 Possibly also feature to edit the acme directory

FatGrizzly avatar Jul 27 '21 03:07 FatGrizzly

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?

meramsey avatar Oct 29 '21 12:10 meramsey