AH00526: Syntax error on line 2 of /etc/httpd/conf.d/le_tls_sni_01_cert_challenge.conf: The address or port is invalid


#1

Hello,

Just tried running
sh letsencrypt-auto --domains mycustomdomain.name
and I got this error message
AH00526: Syntax error on line 2 of /etc/httpd/conf.d/le_tls_sni_01_cert_challenge.conf: The address or port is invalid

I am using Virtualmin to configure domains, and I have quite a few. Any tips what could be wrong?


#2

Check the configuration file /etc/httpd/conf.d/le_tls_sni_01_cert_challenge.conf.
You could run apachectl -t to check which line is incorrect.

I guess there is an unknown IP or just a Port without a listener configured.


#3

Thx just checked out that file, and looks like it is missing. Dont know why. Should I head to serverfault.com? :slight_smile:

cat: /etc/httpd/conf.d/le_tls_sni_01_cert_challenge.conf: No such file or directory


#4

Usually the apache2 parse every *.conf file below /etc/httpd/conf.d/

But if this file doesnt exist, how could it find an error into it?

Which OS you are running? CentOS?


#5

I am running CentOS 7.

But if this file doesnt exist, how could it find an error into it?

No clue :slight_smile:


#6

I assume letsencrypt-auto delete the le_tls_sni_01_cert_challenge.conf whenever the cert issuance succeed or not.
You can try run letsencrypt-auto with multiple -v like -vvvvv for enabling verbose output and have more infos.


#7

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