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

Certificate validation fails for CNAME record #83

Open
vinay2107 opened this issue Oct 19, 2020 · 1 comment
Open

Certificate validation fails for CNAME record #83

vinay2107 opened this issue Oct 19, 2020 · 1 comment

Comments

@vinay2107
Copy link

vinay2107 commented Oct 19, 2020

Missing a command line option to disable ssl check though addressed in the PR #63.
I get the below error upon using a CNAME record for the elasticsearch endpoint.
Error:
level=error msg="Get \"https://elastic.example.comt/\": x509: certificate is valid for *.eu-central-1.es.amazonaws.com, not elastic.example.com

@DustinKLo
Copy link

@vinay2107 its because the proxy assumes you have valid SSL certificates to proxy requests to AWS Elasticsearch

i made a fix in my organization's fork of this repo and added a -insecure flag to skip certificate verification
hysds@c656b87#diff-b9309a8e419ee0b4574642a8afefceccd13d15619fe17be6a1442df29f3db5f2R104-R109

you can check it out here: https://github.com/hysds/aws-es-proxy

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

No branches or pull requests

2 participants