Seems like i was using another tutorial by Bitnami, can you try to see if there’s anything in /opt/bitnami/bncert-tool? The bncert-tool looks like to be the new version of generate-certificate.sh.
There wasnt a seperate directory for bncert-tool - but there was an executable - and when running it it threw out a simular error… (Full output below)
londonparkingcontrol@wp1-parkingcontrol-vm:/opt/bitnami$ sudo ./bncert-tool
Warning: Custom redirections were detected in your web server configuration
files. This tool will not be able to enable/disable redirections.
Press [Enter] to continue:
Welcome to the Bitnami HTTPS Configuration tool.
Domains
Please provide a valid space-separated list of domains for which you wish to
configure your web server.
Error
An error occurred when applying configurations.
The web server configuration was left unchanged. There was an error in the new
configuration, so it was reverted.
Failed steps:
Running Let’s Encrypt: Error renewing certificates
Find more details in the log file:
/tmp/bncert-202008231248.log
If you find any issues, please check Bitnami Support forums at: https://community.bitnami.com
Press [Enter] to continue:
2020/08/23 13:38:54 Please specify --domains/-d (or --csr/-c if you already have a CSR)
sudo /opt/bitnami/letsencrypt/lego run --domains paypcns.co.ukwww.paypcns.co.uk
Incorrect Usage: flag provided but not defined: -domains
NAME:
lego run - Register an account, then create and install a certificate
USAGE:
lego run [command options] [arguments…]
OPTIONS:
–no-bundle Do not create a certificate bundle by adding the issuers certificate to the new certificate.
–must-staple Include the OCSP must staple TLS extension in the CSR and generated certificate. Only works if the CSR is generated by lego.
2020/08/23 13:40:28 flag provided but not defined: -domains
londonparkingcontrol@wp1-parkingcontrol-vm:/$ sudo /opt/bitnami/letsencrypt/lego run --domains “paypcns.co.uk” “www.paypcns.co.uk”
Incorrect Usage: flag provided but not defined: -domains
NAME:
lego run - Register an account, then create and install a certificate
USAGE:
lego run [command options] [arguments…]
OPTIONS:
–no-bundle Do not create a certificate bundle by adding the issuers certificate to the new certificate.
–must-staple Include the OCSP must staple TLS extension in the CSR and generated certificate. Only works if the CSR is generated by lego.
2020/08/23 13:41:07 flag provided but not defined: -domains
londonparkingcontrol@wp1-parkingcontrol-vm:/ /opt/bitnami/ctlscript.sh stop apache
This script requires root privileges
londonparkingcontrol@wp1-parkingcontrol-vm:/ sudo /opt/bitnami/ctlscript.sh stop apache
Unmonitored apache
Syntax OK
/opt/bitnami/apache2/scripts/ctl.sh : httpd stopped
londonparkingcontrol@wp1-parkingcontrol-vm:/$ sudo /opt/bitnami/letsencrypt/lego run -d paypcns.co.uk -d www.paypcns.co.uk --path /opt/bitnami/letsencrypt/ --tls --email londonparkingcontrol@gmail.com
Incorrect Usage: flag provided but not defined: -d
NAME:
lego run - Register an account, then create and install a certificate
USAGE:
lego run [command options] [arguments…]
OPTIONS:
–no-bundle Do not create a certificate bundle by adding the issuers certificate to the new certificate.
–must-staple Include the OCSP must staple TLS extension in the CSR and generated certificate. Only works if the CSR is generated by lego.
2020/08/23 13:53:54 flag provided but not defined: -d
londonparkingcontrol@wp1-parkingcontrol-vm:/ sudo /opt/bitnami/ctlscript.sh start apache
Syntax OK
/opt/bitnami/apache2/scripts/ctl.sh : httpd started at port 80
Monitored apache
londonparkingcontrol@wp1-parkingcontrol-vm:/
londonparkingcontrol@wp1-parkingcontrol-vm:/$ sudo ./opt/bitnami/bncert-tool
Warning: Custom redirections were detected in your web server configuration
files. This tool will not be able to enable/disable redirections.
Press [Enter] to continue:
Welcome to the Bitnami HTTPS Configuration tool.
Domains
Please provide a valid space-separated list of domains for which you wish to
configure your web server.
Well I’m not exactly sure how to fix that, but your site is up and running again!
You might want to contact Bitnami (on that support link above) for the cron issue, it might be serious but my knowledge on Bitnami stops here… I think the cron is when the tool checks certificate expiry and renew it so you should take care of that before your certificate expires.