SSLC Example does not connect... certificate is invalid?

SirFluff

Active Member
OP
Newcomer
Joined
Aug 26, 2022
Messages
37
Trophies
0
Age
16
XP
182
Country
United States
I'm somewhat new to 3ds development.

I'm currently trying to create a simple program that connects to the Discord API.

So, to try things out, I built the SSLC example from devkitPro. But the thing is, it can't connect.
The console output says: "sslcStartConnection() failed: 0xd8a0b801"
According to 3dbrew, this means that the "Server cert verification failed since the RootCA isn't trusted".
It's my understanding that the 3ds' root certificate expired recently, and this causes problems with things.

If I disable verification with SSLCOPT_DisableVerify, some addresses work, but others (like the discord one) give the same error regardless.

If anybody knows why this is happening, or knows more about this topic, can you point me in the right direction?
Thanks in advance.

P.S. Apologies for strange wording in some spots, I had to work around certain keywords due to being a new member.
 

SirFluff

Active Member
OP
Newcomer
Joined
Aug 26, 2022
Messages
37
Trophies
0
Age
16
XP
182
Country
United States
Ok, I figured it out. I'll leave my solution here for anybody out there frantically looking for help on Google.

The 3DS' TLS is outdated - causing most sites to refuse connections.
Instead of using the default library, I used libcurl. (The 3ds port of it, 3ds-curl)
It's a lot easier to use, and actually makes the connections.

I did have to disable RootCA verification, but that's OK for small homebrew applications.

If anybody wants help with making their own things like this, let me know and I'll do my best to help. Cheers!
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    Stop getting your creamy paste all over
    +2
  • impeeza @ impeeza:
    DO NOT WORK FOR ME :(
  • BigOnYa @ BigOnYa:
    I think he has a wedgie, and is afraid to fix it in public.
    +1
  • BigOnYa @ BigOnYa:
    Or else he caught one of those Florida STD's
  • K3Nv2 @ K3Nv2:
    Psis difficulty meter is Stds like how south park made it race color
    +2
  • BakerMan @ BakerMan:
    oh yeah it's skin color for difficulty in south park

    is it, by that logic, blackface to play on the hardest difficulty if you're white?
    +1
  • BigOnYa @ BigOnYa:
    Hey Psi, you ever been on a date and ran into another past date? And how did you handle it? Just curious.
  • K3Nv2 @ K3Nv2:
    He just says this is the neighbor across the block and says sorry their mail got mixed up
  • BakerMan @ BakerMan:
    guys, this sounds unhinged, but someone (i forgot who) saying they'd want to make their left 4 dead team wario, samus, captain falcon and nester gave me the idea for a quick round of fuck marry kill/bed wed behead
    +1
  • BakerMan @ BakerMan:
    fuck marry kill:
    wario, samus, captain falcon
  • BakerMan @ BakerMan:
    i gotta say fuck captain falcon, because he's hot (no homo), marry samus, because she seems like good wife (or as BigOnYa says, wifey) material, and kill wario, because he can't die, so killing him won't really kill him
    +1
  • BakerMan @ BakerMan:
    but uhhh that's just me hehe
    iu
  • impeeza @ impeeza:
    good night guys
    +1
  • BigOnYa @ BigOnYa:
    Nighty night, wise one, thanks for trying to help.
  • Psionic Roshambo @ Psionic Roshambo:
    To sleep perchance to dream!
  • BigOnYa @ BigOnYa:
    My state has put a heavy tax on vape juice, taxing any juice with nicotine by the weight/oz. So to get around the bs, my local vape store only sells 0 nicotine vape juices, then they also sell straight nicotine in tiny bottles, and you mix it yourself to your 0% juice, lol
    +1
  • BigOnYa @ BigOnYa:
    Damn, is that Wing from South Park?
  • Psionic Roshambo @ Psionic Roshambo:
    BigOnYa hmmm I wonder how long until someone just vapes the straight nicotine lol
  • BigOnYa @ BigOnYa:
    I was gonna say people are not that dumb, but yea you right, some are.
    BigOnYa @ BigOnYa: I was gonna say people are not that dumb, but yea you right, some are.