hcorion, its a workaround. You need to create context via 
    
    
    proc newContext*(protVersion = protSSLv23, verifyMode = CVerifyPeer,
                     certFile = "", keyFile = "", cipherList = "ALL"): 
SSLContext =
    

You can find this function in net.nim 
[[https://github.com/nim-lang/Nim/blob/devel/lib/pure/net.nim#L309]](https://github.com/nim-lang/Nim/blob/devel/lib/pure/net.nim#L309\]).

Do not store this context in global variable.

After that you can pass this context as argument to **downloadFile**.

Reply via email to