Keywords: TestLink - Linux - Technical issue - Secure Connections (SSL/HTTPS)
bnsupport ID: 4d02e67c-da5e-3622-ef68-e614cb69cfbe

After certificate renewal I have issues with the SSL Cert. Bncert Tools fails with error Creating Let’s Encrypt certificate: Automatic renewal not working.

Errors in Log file: [08:56:56] Domain did not pass HTTP challenge validation

How can I fix this error?

Hi @andreas.rueger,

Thanks for using Bitnami. I checked your bnsupport bundle and I see the next errors in Apache logs

[Mon Apr 12 07:36:31.927074 2021] [autoindex:error] [pid 21263:tid 139661993273088] [client CLIENT_IP:45105] AH01276: Cannot serve directory /opt/bitnami/apps/letsencrypt/.well-known/: No matching DirectoryIndex (index.html,index.html,index.htm,index.php) found, and server-generated directory index forbidden by Options directive
[Mon Apr 12 07:37:31.581843 2021] [ssl:warn] [pid 22062:tid 140115942935424] AH01916: Init: ( You configured HTTP(80) on the standard HTTPS(443) port!

Did you modify anything in your application configuration or Apache’s?

HI @gongomgra,

I haven’t modified anything. The Problem exists since the IP of my VM changed.

Hi @andreas.rueger,

It seems these lines are missing from the /opt/bitnami/apache/conf/bitnami/bitnami-ssl.conf and /opt/bitnami/apache/conf/vhosts/testlink-https-vhost.conf files

   SSLEngine on
   SSLCertificateFile "/opt/bitnami/apache/conf/"
   SSLCertificateKeyFile "/opt/bitnami/apache/conf/"

Could you please add them and restart the Apache service? Once you do that, you can try to regenerate the certificate manually

sudo /opt/bitnami/letsencrypt/lego --path /opt/bitnami/letsencrypt --email="technik@*********.cloud" --http --http-timeout 30 --http.webroot /opt/bitnami/apps/letsencrypt renew && sudo /opt/bitnami/apache/bin/httpd -f /opt/bitnami/apache/conf/httpd.conf -k graceful

Note: I removed your email from the command

Happy to help!

Was my answer helpful? Click on :heart:

1 Like

Thanks, now it’s working!

Perfect!!! I’m really glad to hear that. Enjoy :slight_smile:

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