# Requests.post() is giving Certificate verification failed error

**URL:** <https://discourse.julialang.org/t/requests-post-is-giving-certificate-verification-failed-error/6001>\
**Category:** General Usage\
**Created:** [September 20, 2017, 2:20pm UTC](https://discourse.julialang.org/t/requests-post-is-giving-certificate-verification-failed-error/6001 "2017-09-20T14:20:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![antoperit](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@antoperit](https://discourse.julialang.org/u/antoperit)\
**Post date:** [September 20, 2017, 2:20pm UTC](https://discourse.julialang.org/t/requests-post-is-giving-certificate-verification-failed-error/6001/1 "2017-09-20T14:20:06Z")

</div>

Dear colleagues,

I am using Julia v0.6  
Calling Requests.post() for example:

> using Requests  
> …  
> rsp = post(“[https://test.com/post](https://test.com/post)”; headers = Dict(“Authorization”=\> “Basic udEB0YW5nZW50LndvcmtzOnRhbmdl==”),json = data)

I receive this error.

```julia

MbedTLS error code -9984: X509 - Certificate verification failed, e.g. CRL, CA or signature check failed.

```

I searched in Rqesuests.jl and found following function

```julia

function do_stream_request(uri::URI, verb; headers = Dict{AbstractString, AbstractString}(),
                            cookies = nothing,
                             .
                             .
                             .
                            history = Response[],
                            tls_conf = TLS_VERIFY 
                            write_body = true,
                            .
                            .
                            .
                            )

```

I also found that TLS\_NOVERIFY is defined in streaming.jl. So I set the default value to

```
                        tls_conf = TLS_NOVERIFY 

```

After that. The Requests.post() is processed sucessfully.  
I want to set tls\_conf = TLS\_NOVERIFY best would be at HTTP layer, through headers or so. I do not want to change Requests.jl file. Can anybody advise the way?

Kind Regards.
