How to get libcurl to properly validate https cert

sorunome

Well-Known Member
OP
Newcomer
Joined
Apr 13, 2024
Messages
62
Trophies
0
XP
202
Country
Germany
Heya, soru wondered how to get libcurl to properly validate https certs? currently she can only make requests with the CURLOPT_SSL_VERIFYPEER set to 0 which kinda defeats the point of ssl. Thank you for help!
 

sorunome

Well-Known Member
OP
Newcomer
Joined
Apr 13, 2024
Messages
62
Trophies
0
XP
202
Country
Germany
So, after having done some research: the libcurl port for 3ds does not come with its own root certs bundled, making verification a bit harder. So, instead soru grabbed the root cert she needed (in her case, let's encrypt), and put it into romfs. Then, she just had to configure libcurl to use this cert:

Code:
curl_easy_setopt(curl, CURLOPT_CAINFO, "romfs:/certs.pem");
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: Att did offer a $500gc tempting to use it for 6 months and cancel