I have a server running several LXD containers providing various services. I have a NGinx Proxy Manager in place and it is managing all the LE certificates. Working fine.
I've just install NextCloud from a script into an LXD container and it is all up and running fine on http://organiser.petterson.network. When I got to the LE certbot section to put https in place I didn't want to use certbot in the LXD but use the NPM already handling the rest of the certificates. So I set up a NPM host organiser.petterson.network pointing through to my IP and requested a LE certificate. It gave me a certificate OK but it wouldn't forward on https: it said
Secure Connection Failed
An error occurred during a connection to organiser.petterson.network. SSL received a record that exceeded the maximum permissible length.
Error code: SSL_ERROR_RX_RECORD_TOO_LONG'
So I assumed that it was because NGinx was forwarding to Apache which handled its own SSL so I turned off SSL in NPM and then tried to finish the instructions which installed Certbot and requested a certificate. It failed the request with the message below.
Current situation is NextCloud working OK on HTTP but failure on HTTPS: Obviously I'd like it working on HTTPS before I go live with it. Pref using NPM so I can keep all the certs in one place. Anyone any ideas. I'm guessing it is because I'd already set it up in NPM?
My domain is:
organiser.petterson.network
I ran this command:
sudo certbot --apache
It produced this output:
Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems:
Domain: organiser.petterson.network
Type: unauthorized
Detail: 82.25.172.13: Invalid response from http://organiser.petterson.network/.well-known/acme-challenge/mApQtnX8l2EFeS48ZqO3twK_vqXXN6jyJDVmD2P9h00: 404
My web server is (include version):
Apache 2.4
The operating system my web server runs on is (include version):
Ubuntu 22.04
My hosting provider, if applicable, is:
n/a
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):
certbot 1.32.2