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?

Have you tried disabling peer and/or host validation?

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?

I’m not sure if the certificate validation can be disabled for roVideoPlayer. Is your stream using the same custom cert?