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

  • Thread starter Thread starter SirFluff
  • Start date Start date
  • Views Views 837
  • Replies Replies 1

SirFluff

Active Member
Newcomer
Joined
Aug 26, 2022
Messages
37
Reaction score
51
Trophies
0
Age
18
XP
202
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.
 
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