Getting errors when trying to use certbot

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.


My domain is: dev1.example.cloud


I ran this command: sudo certbot --apache


It produced this output:

Saving debug log to /var/log/letsencrypt/letsencrypt.log

Could not find ssl_module; not disabling session tickets.

Plugins selected: Authenticator apache, Installer apache

Which names would you like to activate HTTPS for?

1: dev1.example.cloud

Select the appropriate numbers separated by commas and/or spaces, or leave input

blank to select all options shown (Enter ‘c’ to cancel): 1

Obtaining a new certificate

Performing the following challenges:

http-01 challenge for dev1.example.cloud

Error while running apachectl configtest.

AH00526: Syntax error on line 1 of /etc/apache2/other/le_http_01_challenge_pre.conf:

Invalid command ‘RewriteEngine’, perhaps misspelled or defined by a module not included in the server configuration

Cleaning up challenges

Error while running apachectl configtest.

AH00526: Syntax error on line 1 of /etc/apache2/other/le_http_01_challenge_pre.conf:

Invalid command ‘RewriteEngine’, perhaps misspelled or defined by a module not included in the server configuration


My web server is (include version): Apache Tomcat 9.0.17


The operating system my web server runs on is (include version): macOS 10.14.6 Mojave


My hosting provider, if applicable, is: NA


I can login to a root shell on my machine (yes or no, or I don’t know): yes


I’m using a control panel to manage my site (no, or provide the name and version of the control panel): no


The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot): 1.4.0


Earlier it was saying: Unable to find a virtual host listening on port 80 which is currently needed for Certbot to prove to the CA that you control your domain. Please add a virtual host for port 80.

But I added to my /etc/apache2/httpd.conf file the following:
<IfDefine !SERVER_APP_HAS_DEFAULT_PORTS>
Listen 80
<VirtualHost *:80>
DocumentRoot “/Users/kbecker/apache-tomcat-9.0.17/webapps/ROOT”
ServerName dev1.example.cloud

Hi @kbecker

do you use that really as your domain name? If yes, you can’t create a certificate with that domain name.

A public visible, worldwide unique domain name is required, you have to proof you are the domain owner.

If you don’t use a real domain, you can’t create a certificate.

1 Like

That isn’t the exact domain name I’m using. I swapped out the middle part with “example” because this is work related.

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