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

SirFluff

Active Member
OP
Newcomer
Joined
Aug 26, 2022
Messages
37
Trophies
0
Age
16
XP
181
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
181
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
  • Materia_tofu @ Materia_tofu:
    im not a very bright individual, but we live and we learn
  • SylverReZ @ SylverReZ:
    @Materia_tofu, We do learn a lot from plenty of talented individuals.
  • Materia_tofu @ Materia_tofu:
    this is true! i learned how to make soundfont remixes from a friend back in 2021
    +1
  • BakerMan @ BakerMan:
    Update on my brother: He's home now, tired and hungry, obviously, but other than that, seems to be doing fine.
    +2
  • Veho @ Veho:
    That's a relief to hear. Do you know what happened?
  • SylverReZ @ SylverReZ:
    @BakerMan, Any idea what happened? I hope that your brother's doing good.
  • BakerMan @ BakerMan:
    Well, from what I've heard from my parents, he had a seizure last night, perhaps an epileptic episode, fucking died, had a near death experience, my dad called the paramedics, they showed up, took him to the hospital, and he woke up covered in tubes, and started complaining.
  • BakerMan @ BakerMan:
    He couldn't eat until after his MRI, when he had a bomb pop.
  • BakerMan @ BakerMan:
    What matters now is that he's doing alright.
  • Veho @ Veho:
    But you still don't know what it was?
  • Veho @ Veho:
    Has he had seizures before?
  • The Real Jdbye @ The Real Jdbye:
    apparently stress can cause seizures, my brother had one during a test once
  • The Real Jdbye @ The Real Jdbye:
    never had one before that, and never had one since
  • Redleviboy123 @ Redleviboy123:
    Question about game texture chanching Do i need an own game id?
  • The Real Jdbye @ The Real Jdbye:
    @Veho for those that want to
    experience being sonic the hedgehog
  • Veho @ Veho:
    Ah, you mean
    furries.
  • The Real Jdbye @ The Real Jdbye:
    well, sonic fans are a whole separate thing from furries
  • The Real Jdbye @ The Real Jdbye:
    like bronys
  • The Real Jdbye @ The Real Jdbye:
    sonic porn is too weird even for me
  • Dumpflam @ Dumpflam:
    bruh
  • Dumpflam @ Dumpflam:
    guys how do i delete a post
  • The Real Jdbye @ The Real Jdbye:
    you don't
  • The Real Jdbye @ The Real Jdbye:
    you can report it and request deletion
    The Real Jdbye @ The Real Jdbye: you can report it and request deletion