Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow bidirectional communication with AutoTLS enabled #179

Closed
wants to merge 1 commit into from

Conversation

jakule
Copy link

@jakule jakule commented Aug 27, 2021

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.

Fixes #109

@hashicorp-cla
Copy link

hashicorp-cla commented Aug 27, 2021

CLA assistant check
All committers have signed the CLA.

@fairclothjm
Copy link
Contributor

Thanks for the contribution! There was a bit more required to make the mTLS connection. This was fixed in #193

@fairclothjm fairclothjm closed this May 5, 2022
@jakule jakule deleted the add-certificate-ca-server branch May 5, 2022 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AutoMTLS does not work with brokering from plugin to host.
3 participants