First, let me say that I’m not a network engineer and my knowledge in Linux is limited to following examples and writing in high level languages (I’m learning PHP but with a Windows background).
I’m trying to set up a second linux server at my house. The first server was set up without issues. I was able to get a free domain from freenom.com and set up routing of port 443 & 80 from the WAN to my LAN. However, I am trying to set up a second linux server so I can write PHP code on a server (for a nonprofit I’m working on). However, since Server A already uses port 80 & 443 at my IP address, I can’t get certbot/let’s encrypt to work on different ports. For example, I wanted Server B to have a certificate accessible at https://myorganization.ml:5443/.
when I run: sudo certbot --apache -d myorg.ml -d www.myorg.ml , I get a rather complex error reply… (below, real domain name changed)
How do I get 2 different linux computers encrypted behind the same IP?
Thanks
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for myorg.ml
http-01 challenge for www.myorg.ml
Enabled Apache rewrite module
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. myorg.ml (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://myorg.ml/.well-known/acme-challenge/yCGuhk3MqfkwmZzPJVp2xmGUOD2aBLo-AdqkiksZPhg: q%!(EXTRA string=<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p), www.myorg.ml (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://www.stellar7.tk/.well-known/acme-challenge/GAiVLyGMG8W1PYGyORNX2bYgUoVQ5Yt2D45jrOkjyjc: q%!(EXTRA string=<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p)
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: myorg.ml
Type: unauthorized
Detail: Invalid response from
http://myorg.ml/.well-known/acme-challenge/yCGuhk3MqfkwmZzPJVp2xmGUOD2aBLo-AdqkiksZPhg:
q%!(EXTRA string=<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p)
Domain: www.myorg.ml
Type: unauthorized
Detail: Invalid response from
http://www.myorg.ml/.well-known/acme-challenge/GAiVLyGMG8W1PYGyORNX2bYgUoVQ5Yt2D45jrOkjyjc:
q%!(EXTRA string=<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p)
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.