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

How to configure parameters to use consul with HTTPS? #174

Open
hugree opened this issue Mar 12, 2018 · 1 comment
Open

How to configure parameters to use consul with HTTPS? #174

hugree opened this issue Mar 12, 2018 · 1 comment

Comments

@hugree
Copy link

hugree commented Mar 12, 2018

The documentation and examples don't help much here.

There's a mention of a --secure parameter but without any info.

I had to look deep in the sourcecode to find out that it's a true/false parameter.

This doesn't give me any options to pass the consul server SSL certificate.

Same goes for the endpoint. I have no idea if I should include https in front or not.

Without https I get the following error

{"message":"self signed certificate","name":"Error","stack":"Error: self signed certificate\n at Error (native)\n at TLSSocket. (_tls_wrap.js:936:36)\n at TLSSocket.emit (events.js:104:17)\n at TLSSocket._finishInit (_tls_wrap.js:467:8)","code":"DEPTH_ZERO_SELF_SIGNED_CERT"},"msg":"self signed certificate","time":"2018-03-12T15:52:25.463Z","v":0}

Has anyone successfully configured git2consul with a HTTPS consul backend?

@Valdec
Copy link

Valdec commented Nov 20, 2018

A bit late to the party but we fixed this problem on our side through the env variable export :

NODE_TLS_REJECT_UNAUTHORIZED: 0

Founded on https://stackoverflow.com/a/21961005.

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