Can't get AutoTLS to work locally

I have an A record for a domain (let’s call it pointing to

This is my first time trying to use Echo. I just can’t get AutoTLS to work. I keep getting these errors:
⇨ https server started on [::]:443
echo: http: TLS handshake error from acme/autocert: unable to satisfy “” for domain “”: no viable challenge type found
echo: http: TLS handshake error from acme/autocert: missing certificate

I don’t get any write errors on the tempdir… Any help is much appreciated!

Here is my code:
package main

import (







func main() {

    defer os.RemoveAll(Config.tempDir)

    e := echo.New()




        XSSProtection:         "1; mode=block",

        ContentTypeNosniff:    "nosniff",

        XFrameOptions:         "SAMEORIGIN",

        HSTSMaxAge:            3600,

        ContentSecurityPolicy: "default-src 'self'",



    e.AutoTLSManager.HostPolicy = autocert.HostWhitelist("")

    e.AutoTLSManager.Cache = autocert.DirCache(Config.tempDir)

    e.GET("/", func(c echo.Context) error {

        return c.String(http.StatusOK, "Hello, World!")