# Julia 1.6 other libcurl download issues

**URL:** https://discourse.julialang.org/t/julia-1-6-other-libcurl-download-issues/59738
**Category:** General Usage
**Tags:** libcurl
**Created:** [April 20, 2021, 9:46pm UTC](https://discourse.julialang.org/t/julia-1-6-other-libcurl-download-issues/59738 "2021-04-20T21:46:20Z")
**Posts on this page:** 4
**Page:** 2

<div class="post-metadata">

### Author: ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)
#### Post date: [April 22, 2021, 8:10pm UTC](https://discourse.julialang.org/t/julia-1-6-other-libcurl-download-issues/59738/22 "2021-04-22T20:10:50Z")

</div>

> [@neophytedave](#):
>
> ERROR: HTTP/1.1 302 Found (schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.)

This is the problem here.  
It can be caused for example by aggressive Anti Virus Tools which reroot network traffic over a local man-in-the-middle proxy to be able to scan the network traffic even if encrypted. Or by not so well configured corporate proxys.

There is a Curl option `--ssl-no-revoke` for cases like this, but I don’t know how to inject this option into the download system of Julia.  
It is something like:

```julia
using Pkg, Downloads
easy=Downloads.Curl.Easy()
Downloads.Curl.setopt(easy,Downloads.Curl.CURLOPT_PROXY_SSL_OPTIONS,Downloads.Curl.CURLSSLOPT_NO_REVOKE)
Pkg.add("Plots")

```

It’s worth a try @neophytedave but I don’t expect this to work.

Perhaps @StefanKarpinski can give a hint if it is possible to set this option before using `add` or `download` ?

---

<div class="post-metadata">

### Author: ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)
#### Post date: [April 22, 2021, 8:14pm UTC](https://discourse.julialang.org/t/julia-1-6-other-libcurl-download-issues/59738/23 "2021-04-22T20:14:37Z")

</div>

~~Or is it possible to set curl options in a user .curl file?~~

~~Create a file .curlrc in your home folder (C:\Users\vhaglasmithdi)~~

~~add a line with  
 `ssl-no-revoke`  
in the file.~~  
Answer is No for libcurl, see below.

---

<div class="post-metadata">

### Author: ![lrnv](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lrnv/32/19373_2.png) [@lrnv](https://discourse.julialang.org/u/lrnv)
#### Post date: [April 22, 2021, 10:08pm UTC](https://discourse.julialang.org/t/julia-1-6-other-libcurl-download-issues/59738/24 "2021-04-22T22:08:42Z")

</div>

As already pointed out by Stephan [There](https://discourse.julialang.org/t/julia-1-6-using-curl-behind-proxy-for-artifacts-downloads-on-windows/58029/4), libcurl does not answer to .curlrc files. Also you can look at the thread for details on what we already tried in this schanel issue.

Setting Julia\_ssl\_no\_verify AND giving http\_proxy and https\_proxy according to your corporate proxy should solve the issue, as reported on the accompanying GitHub issue that we files the other day [There](https://github.com/JuliaLang/Downloads.jl/issues/108).

The environnement variable to avoid verifying hosts + the http & https credentials of your proxy should be enough to get rid of this schanel issue.

---

<div class="post-metadata">

### Author: ![gaussian](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gaussian/32/38265_2.png) [@gaussian](https://discourse.julialang.org/u/gaussian)
#### Post date: [July 26, 2022, 2:20am UTC](https://discourse.julialang.org/t/julia-1-6-other-libcurl-download-issues/59738/25 "2022-07-26T02:20:28Z")

</div>

Make it use the `libcurl` packaged with Julia. This works for me

```julia
export LD_LIBRARY_PATH="/opt/julia-1.6.7/lib/julia:$LD_LIBRARY_PATH"

```

[Previous page](https://discourse.julialang.org/t/julia-1-6-other-libcurl-download-issues/59738.md?page=1)
