Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
ryanthompson
Level 7

Changing ssl certs

I'm trying to monitor with a traffic going over my roku to test the that my software is working right. I'm monitoring with a man in the middle attack. This works when the traffic is not encrypted (http) but not when I use ssl (https). I want to use a separate certificate but when I try to add my own cert via SetCertificatesFile, I get a failure with the reason: SSL certificate problem: certificate is not yet valid. Response code is -60.

I get the feeling that the Roku device is reaching out to a CA to validate my cert, but I don't really want it to do that.

Any advice? Is this impossible?
0 Kudos
3 Replies
TheEndless
Level 7

Re: Changing ssl certs

Have you tried disabling peer and/or host validation?
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
ryanthompson
Level 7

Re: Changing ssl certs

Ah, that was great, thanks for that answer Mr. TheEndless. Now I'm having trouble playing an https stream. I'm getting a -5 malformed stream error. My feeling is that this is related to having https in my m3u stream. I'm using an roVideoPlayer. Any advice?
0 Kudos
TheEndless
Level 7

Re: Changing ssl certs

I'm not sure if the certificate validation can be disabled for roVideoPlayer. Is your stream using the same custom cert?
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos