• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

alexferl / zerohttp / 46358133233 / 1
94%
master: 94%

Build:
DEFAULT BRANCH: master
Ran 30 Nov 2026 05:14AM UTC
Files 93
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 Nov 2026 05:13AM UTC coverage: 93.576% (-0.007%) from 93.583%
46358133233.1

push

github

web-flow
fix: advertise the tls-alpn-01 challenge protocol in StartAutoTLS (#180)

crypto/tls negotiates ALPN before it calls GetCertificate, so a TLS config
whose NextProtos does not include "acme-tls/1" rejects the ACME tls-alpn-01
validation handshake with "client requested unsupported application
protocols" before the autocert manager is ever asked for the challenge
certificate. DefaultTLSServer and the nil-config fallback in StartAutoTLS
both set NextProtos to ["h2", "http/1.1"], so tls-alpn-01 could never
succeed and autocert always fell back to an http-01 challenge on port 80,
which also requires port 80 to be reachable for issuance and renewal.

Add the challenge protocol to the HTTPS server's NextProtos in
StartAutoTLS, preserving the protocols already configured. The identifier
is a local constant rather than acme.ALPNProto so zerohttp keeps its
deliberate lack of an x/crypto dependency; the manager is injected through
the autocert.Manager interface.

Configure the TLS server before starting its goroutine rather than inside
it. The previous code wrote TLSConfig after StartAutoTLS released its lock,
which raced with readers of the config and with a concurrent StartAutoTLS
call.

Signed-off-by: alexferl <me@alexferl.com>

9265 of 9901 relevant lines covered (93.58%)

143.92 hits per line

Source Files on job 46358133233.1
  • Tree
  • List 93
  • Changed 5
  • Source Changed 1
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 46358133233
  • e8003a63 on github
  • Prev Job for on master (#46356512795.1)
  • Next Job for on master (#46434732774.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc