# How to provide a ca.cert file to HTTP.jl requests (I don't have a key file)

**URL:** https://discourse.julialang.org/t/how-to-provide-a-ca-cert-file-to-http-jl-requests-i-dont-have-a-key-file/96757
**Category:** General Usage
**Tags:** question
**Created:** [March 29, 2023, 8:27am UTC](https://discourse.julialang.org/t/how-to-provide-a-ca-cert-file-to-http-jl-requests-i-dont-have-a-key-file/96757 "2023-03-29T08:27:48Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![schlichtanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/schlichtanders/32/32145_2.png) [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)
#### Post date: [March 29, 2023, 8:27am UTC](https://discourse.julialang.org/t/how-to-provide-a-ca-cert-file-to-http-jl-requests-i-dont-have-a-key-file/96757/1 "2023-03-29T08:27:48Z")

</div>

the documentation lists a couple of ssl configs which can be set a for a http request:

> SSL arguments:
> 
> - require\_ssl\_verification = NetworkOptions.verify\_host(host), pass MBEDTLS\_SSL\_VERIFY\_REQUIRED to the mbed TLS library. “… peer must present a valid certificate, handshake is aborted if verification failed.”
> - sslconfig = SSLConfig(require\_ssl\_verification)
> - socket\_type\_tls = MbedTLS.SSLContext, the type of socket to use for TLS connections. Defaults to MbedTLS.SSLContext. Also supported is passing socket\_type\_tls = OpenSSL.SSLStream. To change the global default, set HTTP.SOCKET\_TYPE\_TLS = OpenSSL.SSLStream.

I found that there is a `MbedTLS.SSLConfig(cacert, keyfile)`, however I am on kubernetes and I only have the ca.cert file and no keyfile.

With curl I have the `--cacert` option, how to do this with HTTP.jl and MbedTLS?
