Skip to content

"Server seems not reachable" determined incorrectly? #212

@elieux

Description

@elieux

I'm getting these errors:

mod_md.c(434): AH10037: server seems not reachable via http: and not reachable via https:
(20014)Internal error (specific information not available): md[example.com]: None of the ACME challenge methods configured for this domain are suitable. The http: challenge 'http-01' is disabled because the server seems not reachable on public port 80. The https: challenge 'tls-alpn-01' is disabled because the server seems not reachable on public port 443.The DNS challenge 'dns-01' is disabled because the directive 'MDChallengeDns01' is not configured.

(There's also a missing space before the last sentence, see https://github.com/icing/mod_md/blob/master/src/md_acme_drive.c#L591.)

The server isn't publicly accessible, but looking at the (hopefully) relevant detect_supported_protocols() there doesn't seem to be such a requirement, just a sanity check to see if the server is listening on the expected ports. I don't see why it should report these errors.

MDCAChallenges http-01 nor MDPortMap http:80 https:443 doesn't change the outcome.

My example config:

ServerRoot W:/temp/httpd

LoadModule authn_core_module modules/mod_authn_core.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule md_module modules/mod_md.so
LoadModule ssl_module modules/mod_ssl.so
LoadModule watchdog_module modules/mod_watchdog.so

DocumentRoot "W:/temp/httpd/htdocs"
<Directory "W:/temp/httpd/htdocs">
Require all granted
</Directory>

ServerAdmin admin@example.com
ErrorLog "logs/error.log"
LogLevel debug
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin

MDCertificateAuthority https://acme.example.com/directory
MDomain example.com

Listen 192.168.88.100:80 192.168.88.100:443
<VirtualHost *:80 *:443>
	ServerName example.com
</VirtualHost>

Build params:

  • Apache/2.4.43 (Win64) OpenSSL/1.1.1g
  • Apache Lounge VS16 Server built: Apr 21 2020 16:23:13
  • mod_ssl/2.4.43 compiled against Server: Apache/2.4.43, Library: OpenSSL/1.1.1g
  • mod_md (v2.2.7)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions