Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ryanthompson
Channel Surfer

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 3
TheEndless
Channel Surfer

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
Channel Surfer

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
Channel Surfer

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