-
Notifications
You must be signed in to change notification settings - Fork 9.9k
Terraform init fails with x509: certificate signed by unknown authority when using Zscaler #15713
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
Comments
Same issue here, also Mac OS. This behavior appears to be a regression in 0.10.0.
|
Oh, not quite new. This was probably an issue but wasn't visible until this change:
|
Hi @flyhard, Thanks for filing the issue, and this may be something we can add in in the future. In the meantime, @dsnellgrove, Yes, Terraform now only pulls the needed providers at init time. For now that they are only pulled from Another option is always to manually install the providers. You can fetch the desired versions from the releases site and unpack them along side the terraform binary, or specify a location using |
@jbardin The ZScalar certificates are already trusted CAs on the system (otherwise not much would get done :) ), Terraform doesn't seem to be using them. |
@dsnellgrove, what is the system running terraform in your case? |
Mac OS 10.12.6 |
It looks like Terraform no longer loads the correct parts of the Keychain due to changes in Go. This prevents TLS validation when performing inspection (which is the ZScaler feature impacting us): |
Yes, I'll take a look at the Go issue. The go1.9 code looks like it may be loading the correct keychains now even though that issue is still open, so hopefully that release will clear this up. Until then the quickest way forward is to fetch the providers manually. |
Hi, The linked Go issue is fixed by 2 separate pieces, one of which has been recently merged and should fix our particular issue. That issue as a whole is marked as a go1.9 release blocker, so I'm fairly confident that the next Go release will close this for us. |
I am also experiencing the exact same issue as explained by @dsnellgrove. |
We are seeing this issue still as well and originally reported it in #12711. Looking forward to a resolution. |
@pgr-mattgartman Which terraform version are you using? I have upgraded to the latest version and for me it works now. Also make sure to update Go to the latest version, there was a bug which caused it. |
@bitbrain I was on an older version, I pulled down 0.10.6 and things seem to work fine on the mac now. Looks like v0.10.2 switched the version over to go 1.9. Thanks! |
Thanks for the confirmation @bitbrain. |
check proxy settings. I got this error but once I checked on proxy settings,I was able to work on TF |
I'm getting the same issue using the latest Terraform version on OSX Error installing provider "null": Get https://releases.hashicorp.com/terraform-provider-null/: x509: certificate signed by unknown authority. |
Also getting this issue using WSL(Ubuntu) |
@dmceathron @omarabid which Terraform version are you using exactly? Also, what is the version of your local Go installation? |
@bitbrain Pretty sure was using the latest when I posted the comment. I don't have a Go installation as far as I'm aware. |
@bitbrain
|
Same problem here... 1.11. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Hi there,
I am trying to run terraform 0.10.0, but
terraform init
fails withMy company is using ZScaler to mess with CA certificates, so I know that the reason is that the certificate used by HashiCorp is not the one I will see, but most applications have a switch to ignore it to let me run it anyways.
Could we get a 'ignore certificate errors' switch, please?
The text was updated successfully, but these errors were encountered: