Acme Autocert Certificate Accepted in Safari but not in Chrome



I’ve just writing a simple echo services which utilising acme autocert for self signed certificate.
The certificate is well accepted in safari but simply rejected by chrome.

Chrome complaining that the certificate is not valid and in the backend this error message is displayed : echo: http: TLS handshake error from remote error: tls: unknown certificate

This is the code that I used for self signing :

e.AutoTLSManager.HostPolicy = autocert.HostWhitelist(domain)
// Cache certificates
e.AutoTLSManager.Cache = autocert.DirCache(".")

Am I doing something wrong ? Did I miss some configuration steps ?

Thanks in advanced.

Kind regards,
Ahmad R. Djarkasih