Closed mperham closed 6 months ago
err := http.ListenAndServeTLS(":443", "public.crt", "private.key", nil)
These two files must be an X509 pair and are processed by https://pkg.go.dev/crypto/tls#LoadX509KeyPair.
Keep in mind if this doesn't work for you, there's a million other ways to add TLS "in front of" Faktory. HAProxy, stunnel, or any number of other proxies can provide public TLS and forward unencrypted traffic to Faktory privately.
TLS is too hard to setup currently and the docs are broken.
Plan
/etc/faktory/conf.d/private.key
and/etc/faktory/conf.d/public.crt
and, if found, activate TLS. Users should create soft links from wherever TLS certs are stored into Faktory's config directory.