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
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, qbittorrent?
  • K3Nv2 @ K3Nv2:
    no I dont torrent
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, then whats qbits?
  • K3Nv2 @ K3Nv2:
    A type of fish
  • Xdqwerty @ Xdqwerty:
    gonna do my homework
  • Xdqwerty @ Xdqwerty:
    see ya
  • K3Nv2 @ K3Nv2:
    Man steams only downloading 15mbps
  • Xdqwerty @ Xdqwerty:
    back
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, wdym thats quite fast
  • Psionic Roshambo @ Psionic Roshambo:
    Just upgraded to 1Gbps Internet, it was cheaper than the other company by a few bucks lol
  • K3Nv2 @ K3Nv2:
    Lol 15mbps is fast
  • Psionic Roshambo @ Psionic Roshambo:
    Ken do I mention that I had 500Mbps and upgraded to 1Gbps and it is only 40 dollars a month?
  • Psionic Roshambo @ Psionic Roshambo:
    But honestly next month will likely be 10 bucks a month.... Dude called his boss and pretty much got a job out of the deal making like 30 bucks an hour.
  • Psionic Roshambo @ Psionic Roshambo:
    They get a 30 dollar discount being an employee lol
  • Xdqwerty @ Xdqwerty:
    @Psionic Roshambo, how much do you earn
  • K3Nv2 @ K3Nv2:
    After taxes enough for one meth pipe
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    About 4K a month
  • K3Nv2 @ K3Nv2:
    @Psionic Roshambo, that'll probably double within a year att?
  • Psionic Roshambo @ Psionic Roshambo:
    Well 4K then bonus and stuff lol
  • Psionic Roshambo @ Psionic Roshambo:
    Ken no I will be working for Satan.... Spectrum AKA Comcast.
  • K3Nv2 @ K3Nv2:
    I should call att just to see how they can beg me to come back
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    But 10 bucks a month for phone and 1Gbps internet and make like 4K+ a month... I will work for the devil lol
  • Psionic Roshambo @ Psionic Roshambo:
    With that kind of money might get a Pi5 and an Orange Pi lol
  • K3Nv2 @ K3Nv2:
    I'm hanging up on you if you call me about my bill
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    lol Ken I will be going door to door in Florida fighting off meth addicts lol
    Psionic Roshambo @ Psionic Roshambo: lol Ken I will be going door to door in Florida fighting off meth addicts lol