Will not create SSL for webmin - acme

Hi,

I hope you can help me. I have some problems issue a SSL certificat for my Webmin control panel

My domain is: webmin.futurenode.dk

I ran this command in webmin:

It produced this output:

Traceback (most recent call last):
  File "/usr/share/webmin/webmin/acme_tiny.py", line 141, in get_crt
    assert (disable_check or _do_request(wellknown_url)[0] == keyauthorization)
  File "/usr/share/webmin/webmin/acme_tiny.py", line 46, in _do_request
    raise ValueError("{0}:\nUrl: {1}\nData: {2}\nResponse Code: {3}\nResponse: {4}".format(err_msg, url, data, code, resp_data))
ValueError: Error:
Url: http://webmin.futurenode.dk/.well-known/acme-challenge/P31VwsIWj8WGFmKNwemipjW27WcOctbaEKku7IO2Nog
Data: None
Response Code: 404
Response: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
</body></html>

During the handling of the above exception, another exception occurred:

My web server is (include version):

Server version: Apache/2.4.52 (Ubuntu)
Server built: 2023-03-01T22:43:55

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

Ubuntu 22.04.2 LTS

My hosting provider, if applicable, is:

Hetzner Dedicated Server

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):

ISPConfig 3.2.9p1 And Webmin 2.021

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

I don’t know…

My vhost for “webmin.futurenode.dk”

<VirtualHost *:80>
     ServerName webmin.futurenode.dk
     DocumentRoot /var/www/webmin
     <Directory /var/www/webmin>
          Options Indexes FollowSymLinks
         AllowOverride All
         Require all granted
     </Directory>
           
     <FilesMatch ".php$"> 
         SetHandler "proxy:unix:/var/run/php/php8.2-fpm.sock|fcgi://localhost/"   
      </FilesMatch>

</VirtualHost>

Kind regards

Thomas

This is a nonsensical situation, I think?

If you want to use Webmin, you should probably also be using our web hosting control panel (Virtualmin), instead of ISPConfig. It does quite a bit more than ISPConfig, and integrates with Webmin; including automatically configuring Webmin to use the SSL certificate for any domain managed in Virtualmin when you connect to Webmin on that domain.

Getting a certificate with Webmin is generally a little trickier than for Virtualmin, since Webmin has to guess about a lot of stuff that Virtualmin knows (because Virtualmin created and is managing your virtual hosts).

I’m getting a 404 when I try to visit the URL, so…the error is right. Why you’re getting an error, I don’t know, and Let’s Encrypt doesn’t know either. Only your web server knows. So, you need to check the error_log for clues.

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