# How to Http-\>CreateRequest() w/ self-signed cert

**URL:** <https://forums.unrealengine.com/t/how-to-http-createrequest-w-self-signed-cert/476937>\
**Category:** Platform & Builds\
**Tags:** httprequest, unreal-engine, http, question\
**Created:** [January 11, 2021, 4:22am UTC](https://forums.unrealengine.com/t/how-to-http-createrequest-w-self-signed-cert/476937 "2021-01-11T04:22:06Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![FunAndFriendly](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FunAndFriendly](https://forums.unrealengine.com/u/FunAndFriendly)\
**Post date:** [January 11, 2021, 4:22am UTC](https://forums.unrealengine.com/t/how-to-http-createrequest-w-self-signed-cert/476937/1 "2021-01-11T04:22:06Z")

</div>

Hi, I’m getting this error when GETing my API. **How can I accept this self-signed certificate?** Is this possible in the UE implementation?

Thank you!

```
LogHttp: Warning: 000001BCE27B4100: request failed, libcurl error: 60 (Peer certificate cannot be authenticated with given CA certificates)
LogHttp: Warning: 000001BCE27B4100: libcurl info message cache 0 (Found bundle for host www.danger.team: 0x1bccf0b3eb0 [serially])
LogHttp: Warning: 000001BCE27B4100: libcurl info message cache 1 (Hostname 'www.danger.team' was found in DNS cache)
LogHttp: Warning: 000001BCE27B4100: libcurl info message cache 2 ( Trying 127.0.0.1...)
LogHttp: Warning: 000001BCE27B4100: libcurl info message cache 3 (TCP_NODELAY set)
LogHttp: Warning: 000001BCE27B4100: libcurl info message cache 4 (Connected to www.danger.team (127.0.0.1) port 80 (#1))
LogHttp: Warning: 000001BCE27B4100: libcurl info message cache 5 (Ignoring the response-body)
LogHttp: Warning: 000001BCE27B4100: libcurl info message cache 6 (Connection #1 to host www.danger.team left intact)
LogHttp: Warning: 000001BCE27B4100: libcurl info message cache 7 (Issue another request to this URL: 'https://www.danger.team/game-config-secret/hello-world')
LogHttp: Warning: 000001BCE27B4100: libcurl info message cache 8 (Found bundle for host www.danger.team: 0x1bccf0b3d30 [serially])
LogHttp: Warning: 000001BCE27B4100: libcurl info message cache 9 (Hostname 'www.danger.team' was found in DNS cache)
LogHttp: Warning: 000001BCE27B4100: libcurl info message cache 10 ( Trying 127.0.0.1...)
LogHttp: Warning: 000001BCE27B4100: libcurl info message cache 11 (TCP_NODELAY set)
LogHttp: Warning: 000001BCE27B4100: libcurl info message cache 12 (Connected to www.danger.team (127.0.0.1) port 443 (#3))
LogHttp: Warning: 000001BCE27B4100: libcurl info message cache 13 (ALPN, offering http/1.1)
LogHttp: Warning: 000001BCE27B4100: libcurl info message cache 14 (Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH)
LogHttp: Warning: 000001BCE27B4100: libcurl info message cache 15 (TLSv1.3 (OUT), TLS handshake, Client hello (1):)
LogHttp: Warning: 000001BCE27B4100: libcurl info message cache 16 (TLSv1.3 (IN), TLS handshake, Server hello (2):)
LogHttp: Warning: 000001BCE27B4100: libcurl info message cache 17 (TLSv1.3 (IN), TLS Unknown, Certificate Status (22):)
LogHttp: Warning: 000001BCE27B4100: libcurl info message cache 18 (TLSv1.3 (IN), TLS handshake, Unknown (8):)
LogHttp: Warning: 000001BCE27B4100: libcurl info message cache 19 (TLSv1.3 (IN), TLS Unknown, Certificate Status (22):)
LogHttp: Warning: 000001BCE27B4100: libcurl info message cache 20 (TLSv1.3 (IN), TLS handshake, Certificate (11):)
LogHttp: Warning: 000001BCE27B4100: libcurl info message cache 21 (TLSv1.3 (OUT), TLS alert, Server hello (2):)
LogHttp: Warning: 000001BCE27B4100: libcurl info message cache 22 (SSL certificate problem: self signed certificate)
LogHttp: Warning: 000001BCE27B4100: libcurl info message cache 23 (Closing connection 3)
```

---

<div class="post-metadata">

**Author:** ![Animzy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Animzy](https://forums.unrealengine.com/u/Animzy)\
**Post date:** [February 16, 2021, 3:41am UTC](https://forums.unrealengine.com/t/how-to-http-createrequest-w-self-signed-cert/476937/2 "2021-02-16T03:41:11Z")

</div>

Hey @FunAndFriendly, I just had this problem myself (again, for the second time) and had to remember how I solved it. Do the following - Edit-\>Project Settings. Under Engine → Network, make sure that “Verify Peer” under Libcurl is **not** checked.

Then, the most important part, restart UE4… If you don’t restart, it won’t take effect - the not restarting thing hung me up for a good half an hour ☹

---

<div class="post-metadata">

**Author:** ![FunAndFriendly](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FunAndFriendly](https://forums.unrealengine.com/u/FunAndFriendly)\
**Post date:** [February 19, 2021, 2:36am UTC](https://forums.unrealengine.com/t/how-to-http-createrequest-w-self-signed-cert/476937/3 "2021-02-19T02:36:09Z")

</div>

ZOMG THANK YOU!

---

<div class="post-metadata">

**Author:** ![Kebobble](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kebobble](https://forums.unrealengine.com/u/Kebobble)\
**Post date:** [March 12, 2022, 11:27pm UTC](https://forums.unrealengine.com/t/how-to-http-createrequest-w-self-signed-cert/476937/4 "2022-03-12T23:27:22Z")

</div>

Saved me so much time, thought I needed to go the CA certificate route!

---

<div class="post-metadata">

**Author:** ![godefv](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@godefv](https://forums.unrealengine.com/u/godefv)\
**Post date:** [May 9, 2022, 1:15pm UTC](https://forums.unrealengine.com/t/how-to-http-createrequest-w-self-signed-cert/476937/5 "2022-05-09T13:15:57Z")

</div>

Disabling “Verify Peer” will disable all SSL checks and make the connection insecure.

Instead, you can generate a self-signed CA and sign your server certificate with it, then copy your CA certificate to /Content/Certificates/cacert.pem (and export it in packaged build).

To generate these two certificates yourself, see [this tutorial](https://blog.devgenius.io/how-to-generate-self-signed-ssl-certificates-b85562830ab) .

---

<div class="post-metadata">

**Author:** ![PRESSURE2000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PRESSURE2000](https://forums.unrealengine.com/u/PRESSURE2000)\
**Post date:** [June 5, 2023, 3:00am UTC](https://forums.unrealengine.com/t/how-to-http-createrequest-w-self-signed-cert/476937/6 "2023-06-05T03:00:42Z")

</div>

im using windows 10 and the link says

The commands in this guide are based on macOS, but Linux commands should be similar.

how can I do this for windows 10

---

<div class="post-metadata">

**Author:** ![godefv](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@godefv](https://forums.unrealengine.com/u/godefv)\
**Post date:** [October 20, 2023, 12:40pm UTC](https://forums.unrealengine.com/t/how-to-http-createrequest-w-self-signed-cert/476937/7 "2023-10-20T12:40:41Z")

</div>

I use Cygwin on Windows to run linux commands.

---

<div class="post-metadata">

**Author:** ![TheSubZer0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheSubZer0](https://forums.unrealengine.com/u/TheSubZer0)\
**Post date:** [January 19, 2025, 2:03pm UTC](https://forums.unrealengine.com/t/how-to-http-createrequest-w-self-signed-cert/476937/8 "2025-01-19T14:03:41Z")

</div>

This no longer works in UE 5.4.4

---

<div class="post-metadata">

**Author:** ![ur-yantao](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ur-yantao](https://forums.unrealengine.com/u/ur-yantao)\
**Post date:** [July 26, 2025, 3:19am UTC](https://forums.unrealengine.com/t/how-to-http-createrequest-w-self-signed-cert/476937/9 "2025-07-26T03:19:49Z")

</div>

> [@FunAndFriendly](#):
>
> y API. **How can I accept this se**

UE 5.3.2 also not work

---

<div class="post-metadata">

**Author:** ![ben-mkiv](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ben-mkiv](https://forums.unrealengine.com/u/ben-mkiv)\
**Post date:** [May 29, 2026, 10:13am UTC](https://forums.unrealengine.com/t/how-to-http-createrequest-w-self-signed-cert/476937/10 "2026-05-29T10:13:08Z")

</div>

> [@godefv](#):
>
> /Content/Certificates/cacert.pem

thank you, it should be noted that the filename **MUST** be `cacert.pem`  
And it’s a certificate bundle, so you can put several certificates into that file.

You can use the engine file as reference of how to compose your project specific cert bundle `/path/to/UnrealEngine/Engine/Content/Certificates/cacert.pem`

(tested in 5.7 btw., for those who thought this was broken in 5.x)
