Https (SSL) connection doesn't work

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By desik
:warning: Old Version Published before Godot 3 was released.

I am trying to get SSL/https connection working in my game.

I’ve got a Let’sEncrypt certificate which I use on sub-domain https://rud.upcode.pl and its working properly.

In my Godot’s project settings, I’ve added my certificate.crt under
Project Settings->SSL->certificates tab.

I’ve also added .crt files to export, in export->resources.

Anyway, when I try to make requests to my hosts (rud.upcode.pl) I get in the console things like:

HTTPClient entered status 3
CONNECTION RESULT: -1
HTTPClient entered status 5
HTTPClient entered status 8
Connection Error

I am using a client wrapper from this gist:

Any idea what should I change to make SSL working?

:bust_in_silhouette: Reply From: ictbram

I encountered the same thing with Let’sEncrypt
It was working with a self signed certficate setup, but not with the downloaded seperate certifcate from Let’sEncrypt.
With the certificate bundle from the godot git repository however it does work with the Let’sEncrypt setup.
Got the answer from here:
https://forum.godotengine.org/29068/httprequest-and-https-certificates?show=29068#q29068