There IS a firewall (whatever is default with OpenSUSE) but pts 80 and 443 are open and serve fine. The only thing between the WF host and the internets is my home wifi router but it just port forwards 80,443 and a few others to the WF host.
When running with the certbot cert, I just get connection refused.
C:\Users\user>curl -I http://awadwatt.com
curl: (7) Failed to connect to awadwatt.com port 80 after 2193 ms: Couldn't connect to server
C:\Users\user>curl -I http://www.awadwatt.com
curl: (7) Failed to connect to www.awadwatt.com port 80 after 2167 ms: Couldn't connect to serverC:\Users\user>curl -I http://awadwatt.com
curl: (7) Failed to connect to awadwatt.com port 80 after 2193 ms: Couldn't connect to server
C:\Users\user>curl -I http://www.awadwatt.com
curl: (7) Failed to connect to www.awadwatt.com port 80 after 2167 ms: Couldn't connect to server
this is the wf log while its doing this
2023/07/21 13:19:32 Starting WriteFreely 0.13.2...
2023/07/21 13:19:32 Loading /usr/local/bin/config.ini configuration...
2023/07/21 13:19:32 Loading templates...
2023/07/21 13:19:32 Loading pages...
2023/07/21 13:19:32 Loading user pages...
2023/07/21 13:19:32 Loading encryption keys...
2023/07/21 13:19:32 Connecting to mysql database...
2023/07/21 13:19:32 Initializing local timeline...
2023/07/21 13:19:32 Adding awadwatt.com routes (multi-user)...
2023/07/21 13:19:32 Going to serve...
2023/07/21 13:19:32 Serving on https://localhost:443
2023/07/21 13:19:32 Using manual certificates
2023/07/21 13:19:32 ---
2023/07/21 13:19:32 Serving redirects on http://localhost:80
<and nothing else>
If I reconfig to use WF’s built in autocert and restart, it works fine. DNS is mapped correctly, ports 80 and 443 are being fwd through my router just fine. If I configure to use the certbot certs WF just sits there and refuses all connections, no hint in the log.
Thinking that I had bodged the certbot certificate, I just redid it:
famine:/etc/letsencrypt/archive/awadwatt.com # certbot certonly --standalone -d www.awadwatt.com -d awadwatt.com
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Invalid OCSP response for /etc/letsencrypt/archive/awadwatt.com/cert1.pem: param thisUpdate is in the future..
Certificate not yet due for renewal
You have an existing certificate that has exactly the same domains or certificate name you requested and isn't close to expiry.
(ref: /etc/letsencrypt/renewal/awadwatt.com.conf)
What would you like to do?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: Keep the existing certificate for now
2: Renew & replace the certificate (may be subject to CA rate limits)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2
Renewing an existing certificate for www.awadwatt.com and awadwatt.com
Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/awadwatt.com/fullchain.pem
Key is saved at: /etc/letsencrypt/live/awadwatt.com/privkey.pem
This certificate expires on 2023-10-19.
These files will be updated when the certificate renews.
Certbot has set up a scheduled task to automatically renew this certificate in the background.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you like Certbot, please consider supporting our work by:
* Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
* Donating to EFF: https://eff.org/donate-le
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
famine:/etc/letsencrypt/archive/awadwatt.com # ls -lat
total 40
drwxr-xr-x 1 root root 180 Jul 21 13:18 .
-rw-r--r-- 1 root root 1513 Jul 21 13:18 cert2.pem
-rw-r--r-- 1 root root 3749 Jul 21 13:18 chain2.pem
-rw-r--r-- 1 root root 5262 Jul 21 13:18 fullchain2.pem
-rw------- 1 root root 241 Jul 21 13:18 privkey2.pem
-rw-r--r-- 1 root root 1509 Jul 9 10:31 cert1.pem
-rw-r--r-- 1 root root 3749 Jul 9 10:31 chain1.pem
-rw-r--r-- 1 root root 5258 Jul 9 10:31 fullchain1.pem
-rw------- 1 root root 241 Jul 9 10:31 privkey1.pem
drwx------ 1 root root 24 Jul 9 10:31 ..
famine:/etc/letsencrypt/archive/awadwatt.com #
(the “live” certbot shortcuts are redirects to …/archive/).
And using the WF autocert (which is only for the one domain, it quite happily serves the one, but not the other:
2023/07/21 13:29:13 Loading user pages...
2023/07/21 13:29:13 Loading encryption keys...
2023/07/21 13:29:13 Connecting to mysql database...
2023/07/21 13:29:13 Initializing local timeline...
2023/07/21 13:29:13 Adding awadwatt.com routes (multi-user)...
2023/07/21 13:29:13 Going to serve...
2023/07/21 13:29:13 Using autocert on host awadwatt.com
2023/07/21 13:29:13 Serving on https://localhost:443
2023/07/21 13:29:13 ---
2023/07/21 13:29:13 Serving redirects on http://localhost:80
2023/07/21 13:30:56 "POST /api/collections/tezoatlipoca/inbox" 200 2.385302ms "http.rb/5.1.1 (Mastodon/4.1.4+nightly-20230718; +https://mastodon.social/)"
2023/07/21 13:30:59 http: TLS handshake error from 10.0.0.86:2217: acme/autocert: host "www.awadwatt.com" not configured in HostWhitelist
2023/07/21 13:30:59 http: TLS handshake error from 10.0.0.86:2218: acme/autocert: host "www.awadwatt.com" not configured in HostWhitelist
2023/07/21 13:30:59 http: TLS handshake error from 10.0.0.86:2219: acme/autocert: host "www.awadwatt.com" not configured in HostWhitelist
2023/07/21 13:31:00 http: TLS handshake error from 10.0.0.86:2225: acme/autocert: host "www.awadwatt.com" not configured in HostWhitelist
2023/07/21 13:31:04 http: TLS handshake error from 10.0.0.86:2231: acme/autocert: host "www.awadwatt.com" not configured in HostWhitelist
2023/07/21 13:31:04 http: TLS handshake error from 10.0.0.86:2232: acme/autocert: host "www.awadwatt.com" not configured in HostWhitelist
2023/07/21 13:31:04 http: TLS handshake error from 10.0.0.86:2233: acme/autocert: host "www.awadwatt.com" not configured in HostWhitelist
2023/07/21 13:31:04 http: TLS handshake error from 10.0.0.86:2235: acme/autocert: host "www.awadwatt.com" not configured in HostWhitelist
2023/07/21 13:31:04 http: TLS handshake error from 10.0.0.86:2236: acme/autocert: host "www.awadwatt.com" not configured in HostWhitelist
2023/07/21 13:31:04 http: TLS handshake error from 10.0.0.86:2237: acme/autocert: host "www.awadwatt.com" not configured in HostWhitelist
2023/07/21 13:31:04 http: TLS handshake error from 10.0.0.86:2238: acme/autocert: host "www.awadwatt.com" not configured in HostWhitelist
2023/07/21 13:31:04 http: TLS handshake error from 10.0.0.86:2239: acme/autocert: host "www.awadwatt.com" not configured in HostWhitelist
2023/07/21 13:31:05 "POST /api/collections/metalsamurai/inbox" 200 3.079651ms "http.rb/5.1.1 (Mastodon/4.1.4+nightly-20230718; +https://mastodon.social/)"
2023/07/21 13:31:15 "GET /" 200 3.672292ms "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36"
2023/07/21 13:31:15 "GET /favicon.ico" 200 10.476545ms "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36"
2023/07/21 13:31:17 "GET /me/c/" 200 5.171141ms "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36"
2023/07/21 13:31:19 "GET /me/c/tezoatlipoca/stats" 200 7.202784ms "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36"
2023/07/21 13:31:51 "POST /api/collections/metalsamurai/inbox" 200 2.998471ms "http.rb/5.1.1 (Mastodon/4.1.4+nightly-20230718; +https://mastodon.social/)"
2023/07/21 13:32:09 "POST /api/collections/tezoatlipoca/inbox" 200 3.211894ms "http.rb/5.1.1 (Mastodon/4.1.4+nightly-20230718; +https://mastodon.social/)"
2023/07/21 13:33:38 "POST /api/collections/metalsamurai/inbox" 200 3.142151ms "http.rb/5.1.1 (Mastodon/4.1.4+nightly-20230718; +https://mastodon.social/)"
2023/07/21 13:34:13 "POST /api/collections/tezoatlipoca/inbox" 200 3.190279ms "http.rb/5.1.1 (Mastodon/4.1.4+nightly-20230718; +https://mastodon.social/)"
2023/07/21 13:34:25 "POST /api/collections/metalsamurai/inbox" 200 3.080844ms "http.rb/5.1.1 (Mastodon/4.1.4+nightly-20230718; +https://mastodon.social/)"
2023/07/21 13:34:30 http: TLS handshake error from 87.120.88.251:60736: acme/autocert: missing server name
2023/07/21 13:34:33 http: TLS handshake error from 23.251.102.74:54212: acme/autocert: missing server name
2023/07/21 13:34:46 http: TLS handshake error from 37.187.142.36:42226: acme/autocert: host "www.awadwatt.com" not configured in HostWhitelist