Currently enabling AutoTLS when connecting from a plugin back to host ends with transport: authentication handshake failed: x509: certificate is valid for localhost, not unused as described in #109.
This PR sets ServerName and RootCAs in tls.Config on the server-side with the certificate received from the host. This allows to successfully establish the connection.
Currently enabling AutoTLS when connecting from a plugin back to host ends with
transport: authentication handshake failed: x509: certificate is valid for localhost, not unused
as described in #109. This PR sets ServerName and RootCAs intls.Config
on the server-side with the certificate received from the host. This allows to successfully establish the connection.Fixes #109