Certificate not auto-renewing

OK then
sudo /opt/bitnami/apache2/bin/httpd -k stop
or
sudo /opt/bitnami/apache2/bin/httpd -k graceful-stop
[if you care about any ongoing connections]

bitnami@ip-172-26-12-170:~$ sudo /opt/bitnami/apache2/bin/httpd -k stop
httpd.bin: Could not open configuration file /bitnami/lamp72stack-linux-x64/output/apache2/
conf/httpd.conf: No such file or directory

Iā€™m not worried about ongoing connections

OMG!!!
Try:
sudo /opt/bitnami/apache2/bin/httpd -f /opt/bitnami/apache2/conf/httpd.conf -k stop

looks like that worked

OMG! Did that work?
bitnami@ip-172-26-12-170:~$ sudo /opt/bitnami/letsencrypt/lego \

--path=/opt/bitnami/letsencrypt
--email=flyntmor@gmail.com
--domains=morelandarts.com
--domains=www.morelandarts.com
--http renew
2019/11/24 05:10:22 [INFO] [morelandarts.com] acme: Trying renewal with 182 hours remaining
2019/11/24 05:10:22 [INFO] [morelandarts.com, www.morelandarts.com] acme: Obtaining bundled
SAN certificate
2019/11/24 05:10:23 [INFO] [morelandarts.com] AuthURL: https://acme-v02.api.letsencrypt.org
/acme/authz-v3/1380275084
2019/11/24 05:10:23 [INFO] [www.morelandarts.com] AuthURL: https://acme-v02.api.letsencrypt
.org/acme/authz-v3/1380275086
2019/11/24 05:10:23 [INFO] [morelandarts.com] acme: Could not find solver for: tls-alpn-01
2019/11/24 05:10:23 [INFO] [morelandarts.com] acme: use http-01 solver
2019/11/24 05:10:23 [INFO] [www.morelandarts.com] acme: Could not find solver for: tls-alpn
-01
2019/11/24 05:10:23 [INFO] [www.morelandarts.com] acme: use http-01 solver
2019/11/24 05:10:23 [INFO] [morelandarts.com] acme: Trying to solve HTTP-01
2019/11/24 05:10:23 [INFO] [morelandarts.com] Served key authentication
2019/11/24 05:10:24 [INFO] [morelandarts.com] Served key authentication
2019/11/24 05:10:24 [INFO] [morelandarts.com] The server validated our request
2019/11/24 05:10:24 [INFO] [www.morelandarts.com] acme: Trying to solve HTTP-01
2019/11/24 05:10:24 [INFO] [www.morelandarts.com] Served key authentication
2019/11/24 05:10:24 [INFO] [www.morelandarts.com] Served key authentication
2019/11/24 05:10:24 [INFO] [www.morelandarts.com] Served key authentication
2019/11/24 05:10:29 [INFO] [www.morelandarts.com] The server validated our request
2019/11/24 05:10:29 [INFO] [morelandarts.com, www.morelandarts.com] acme: Validations succe
eded; requesting certificates
2019/11/24 05:10:29 [INFO] [morelandarts.com] Server responded with a certificate.
bitnami@ip-172-26-12-170:~$

I assume start would be:
sudo /opt/bitnami/apache2/bin/httpd -f /opt/bitnami/apache2/conf/httpd.conf -k start

Or should I use restart?

1 Like

I think so:

Yes: start

Try the list command again.

???
bitnami@ip-172-26-12-170:~ sudo /opt/bitnami/apache2/bin/httpd -f /opt/bitnami/apache2/con f/httpd.conf -k start httpd (pid 2314) already running bitnami@ip-172-26-12-170:~ sudo /opt/bitnami/letsencrypt/lego list
No certificates found.

says I now have 90 days

|CN=morelandarts.com|24.11.2019|22.02.2020

expires in 90 days morelandarts.com, www.morelandarts.com - 2 entries
1 Like

Hallelujah ! ! ! !

I cannot thank you enough!

Now I need to figure out how to get auto renew working, but Iā€™m leaving that for another day.

Again, thank you, thank you, thank you!

1 Like

Even though I lost the wagerā€¦
Feel free to Buy me a :beer: or even better donate that :beer: money to LE
Either way:
-Cheers from Miami :beers:

Iā€™ll do that (donate).

1 Like

If anyone else ends up looking at these posts, Hereā€™s a summary of what worked.

First Stop the web server:
sudo /opt/bitnami/apache2/bin/httpd -f /opt/bitnami/apache2/conf/httpd.conf -k stop

Then send these command:
sudo /opt/bitnami/letsencrypt/lego
> --path=/opt/bitnami/letsencrypt
> --email=flyntmor@gmail.com
> --domains=morelandarts.com
> --domains=www.morelandarts.com
> --http renew

And Restart the webserver
sudo /opt/bitnami/apache2/bin/httpd -f /opt/bitnami/apache2/conf/httpd.conf -k start

In the end, I think what got you was the double-dash mash and the open/close quotes out of order:

1 Like

Unix shells normally only recognize " and ' as quotation marks. The ā€œ and ā€ characters, among others, arenā€™t suitable for use in shell scripting or command line interactions at all (regardless of how theyā€™re matched up). An ā€œopeningā€ quotation mark in Unix shells is one that appears when youā€™re not already inside of quotation marks.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.