Ferron 3.0.0-rc.11 released

Published on: Author: Dorian Niemiec Category: Releases

Today, we’re releasing Ferron 3.0.0-rc.11, the eleventh release candidate of Ferron 3.

This release is about further stabilization of Ferron 3, such as for TLS or the HTTP protocol.

HTTP protocol hardening

I got lots of PRs from one person on GitHub (@Iaotle specifically, so thank you) for zincio (async runtime) and zincio-http (HTTP server library), both used by Ferron 3. For zincio-http ones, many of them are HTTP/3 correctness-related.

I also ending up addressing other HTTP-related correctness issues, such as HTTP/2 stall during configuration reload or intermittent HTTP/3 issues on Safari.

See zincio-http changelog for more details.

Overall TLS improvements

Addressing user feedback, I have added support for custom CA trust anchors for the reverse proxy, which can be configured like this:

example.com {
    proxy {
        upstream http://somehost.example:3000/
        ca /path/to/ca-bundle.pem # If not set, use system store or if that fails, Mozilla's store
    }
}

Also, I added client_auth_required subdirective for tls block, which can allow unauthenticated connections even if mTLS is enabled.

For ACME, the server now accepts TLS cryptographic parameters and client certificate authentication settings for ACME TLS provider. (GitHub issue)

ACME automatic TLS

After seeing another request, I have added support for key_algo and key_size configuration options in ACME automatic TLS configurations. They can be used to configure TLS certificate key (for example, it could be set to RSA with 2048-bit keys or ECDSA). It can be configured like this:

example.com {
    tls {
        provider acme
        directory https://acme-v02.api.letsencrypt.org/directory
        cache /var/cache/ferron-acme

        # 3072-bit RSA key with SHA384 hashing
        key_algo PKCS_RSA_SHA384
        key_size 3072
    }

    root /var/www/example
}

Also, I got various improvements for ACME automatic TLS from @neurekadev (thank you!), such as:

  • Certificate orders survive reloads: a configuration reload no longer cancels an ACME order in progress. The order finishes (for up to 5 minutes), and with a file-based cache the reloaded configuration uses its certificate, so frequent reloads no longer stall certificate issuance. (PR)
  • Concurrent certificate provisioning: the ACME background task now obtains and renews up to 4 certificates at once instead of one after another, so servers with many hosts get their certificates much sooner. (PR)
  • Faster DNS-01 challenges: instead of always waiting 60 seconds after creating each DNS-01 record, Ferron now asks the CA to validate as soon as the zone’s authoritative nameservers serve the record when queried from Ferron, still waiting at most 60 seconds. With providers that publish records quickly, each challenge now takes a few seconds. (PR)
  • Orphaned provisioning locks after reloads: when a configuration reload cancelled an ACME order in progress, its lock_certificate_* lockfile stayed in the cache, and the domain got no certificate until the 5-minute lock lease expired. The lockfile is now removed when the order is cancelled. (PR)

OCSP stapling compatibility fix

I saw some reports of websites failing to load due to TLS certificate errors. For quite some time, I was wondering why would some webview-based browsers on Android fail to connect to https://ferron.sh (with Actalis CA).

So I tried to reproduce the issue on my Android devices, but they all load https://ferron.sh just fine. I ended up trying out LineageOS 24.0 (based on Android 17) on official Android emulator, and then I was able to trigger the issue on its built-in webview-based browser.

After some investigation, I found out disabling OCSP stapling would be a workaround for the issue. And then I found out OCSP stapling uses SHA-256 issuer name and key hashes, which may not work with some clients, and are less common than SHA-1 ones for this use case. So I replaced them with SHA-1 ones (even though it got SHAttered… 🥲), for improved compatibility with Android and old Firefox versions.

Ferron 3 stable coming soon

Ferron 3 development ended up slowing down, and people reported issues too (thank you!), so I think at this point Ferron 3 stable release is imminent.

As always, I welcome feedback, bug reports, and testing results.

Full changelog

You can see the complete changelog for Ferron 3.0.0-rc.11 in the release notes.

Try it

Install Ferron 3 using the installer:

sudo bash -c "$(curl -fsSL https://get.ferron.sh/v3)"