-
-
Notifications
You must be signed in to change notification settings - Fork 178
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
HTTPS download broken again on windows #289
Comments
|
Adding |
|
I'm getting this on using http which is even more odd...
Works fine on Linux, it's just Windows that's complaining. |
|
probably due to the age of the cacert.pem used to gloss over an old issue for windows. someone should spend some time to see if this no longer needed. in the mean time a newer cacert.pem file is likely to fix this: https://curl.haxx.se/docs/caextract.html |
|
@nanilu How would this affect an http link though? It shouldn't be using certs for http? |
|
@ElvenSpellmaker probably due to redirect to https. |
|
@nanilu You're indeed correct, weirdly if you use their link as https it doesn't work. So it seems Oracle has the redirect as http only but it redirects to an https download link. Weird, but fair enough. |
|
In my case @nanliu's PR doesn't seem to fix it, shame. |
|
i'm not sure if this was fixed. Windows seem to throw this error for the latest puppet archive module version Error: Could not set 'present' on ensure: SSL_connect returned=1 errno=0 state=error: certificate verify failed at 83:C: |
|
I never found a fix for it unfortunately and had to |
|
@hprasad068 Please provide the code you are using so i can debug this? @ElvenSpellmaker Can you provide a new url where you had to use allow_insecure. I can debug this as well. |
|
@TraGicCode below is the puppet snippet that fetches the zip file from Nexus Repository { I'm had the similar issue in Linux as well but that got resolved when i used a environment variable SSL_CERT_FILE with cacert.pem. We are not sure on what needs to be changed in windows or where the cacert.pem needs to be put. we tried with the latest cacert.pem under \lib\puppet_x\bodeco but the error still appears for windows. |
|
So there are 2 options 1.) set the same environment variable one windows. You can put the cacertpem wherever I want. 2.) the cacert.pem that is vendored with this module probably just needs updating since it’s 8 months old. I can create a branch in a fork with the latest pem and if it works for you I can create a pr for it to get merged in and cut a new release. Using this approach you don’t have to worry about setting the ssl_cert_file envy variable and the module will use the vendored one when the env variable isnt configured |
|
@TraGicCode i tried both the options last week and it didn't resolve it. That's probably the reason i wanted to make sure if it worked for others. This is what we did |
|
Can you do a puppet run with a --debug and paste the output here? |
|
I also noticed you said apply. Are u running in master agent mode or masterless? |
|
@TraGicCode We are running in masterless mode. The error message i gave in my initial request was taken from debug mode only. There were lot of other messages other than that which i don't think we'll able to put in here due to the size . do we have look into anything specifically..? |
|
It's the same url as shown above, an extract of our jce profile is below: archive { $archive_path:
ensure => present,
allow_insecure => $allow_insecure,
extract => true,
source => "http://download.oracle.com/otn-pub/java/jce/8/${jce_filename}",
cookie => 'oraclelicense=accept-securebackup-cookie',
extract_path => $security_dir,
extract_command => $extract_command,
creates => "${security_dir}/README.txt",
cleanup => true,
user => 'root',
group => 'root',
}Where the filename is This works fine on Linux but not on Windows. The cookie is needed else you'll be redirected elsewhere. |
|
Hey @ElvenSpellmaker This worked perfect for me. Am i missing something? |
|
@hprasad068 Are you able to paste your puppet snippet? |
|
@ElvenSpellmaker @hprasad068 Just let me know if this issue is resolved so i can close this. Thanks! |
|
Closing this for now for lack of response and being unable to reproduce. |
Update cacert.pem
Hi,
I try to use archive to download Consul from: https://releases.hashicorp.com/consul/0.9.0/consul_0.9.0_windows_amd64.zip
But it fails with
I can find an old issue on this, but it was fixed.
Im using windows 2016
The text was updated successfully, but these errors were encountered: