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: 
Fogview
Visitor

Playing video from S3 SSL server?

I have developed an app that plays video from a test server using roVideoScreen. I'm now trying to play the same videos from a https://s3.amazonaws.com account and it's not working. I get the following error message:

showHomeScreen | msg = An unexpected problem (but not server timeout or HTTP error) has been detected. | index = -3
Video request failure: -3 0

I've read that you need to enable SSL, so I added the following code:
screen.SetCertificatesFile("pkg:/source/cacert.pem")
screen.InitClientCertificates()

The documentation is not very clear on SSL access but from reading the forums it seems the cert file in the Roku package is only useful for creating your own cert and uploading it to your server. This is not possible with Amazon S3 so where do we get a cert file that will allow access to the site? Is this something that I can create myself using openSSL?

I'm sure I'm not alone in trying to serve content from a S3 account that requires SSL.

Thanks in advance to anyone who can shed some light on this issue.
-Tom
0 Kudos
1 REPLY 1
sylistron
Visitor

Re: Playing video from S3 SSL server?

Tom,

You need to download the Verisign CA certs to include in your projects. Here's the CA file here that I used to get mine working.

I also have a blog post about how to use secure S3 URLs: http://www.valtira.com/page/1/valtira-b ... ign-s3.jsp

-----BEGIN CERTIFICATE-----
MIIE+DCCA+CgAwIBAgIQeo+SIwIaV15+swESSrlhUDANBgkqhkiG9w0BAQUFADCB
tTELMAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQL
ExZWZXJpU2lnbiBUcnVzdCBOZXR3b3JrMTswOQYDVQQLEzJUZXJtcyBvZiB1c2Ug
YXQgaHR0cHM6Ly93d3cudmVyaXNpZ24uY29tL3JwYSAoYykwOTEvMC0GA1UEAxMm
VmVyaVNpZ24gQ2xhc3MgMyBTZWN1cmUgU2VydmVyIENBIC0gRzIwHhcNMTAxMDA4
MDAwMDAwWhcNMTMxMDA3MjM1OTU5WjBpMQswCQYDVQQGEwJVUzETMBEGA1UECBMK
V2FzaGluZ3RvbjEQMA4GA1UEBxQHU2VhdHRsZTEY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fqLptQ5GVj0VXXn7F+8qkBOvqlzdUMG+7AUcyM83cV5tkaWH4mx0ciU9cZwID
AQABMA0GCSqGSIb3DQEBBQUAA4GBAFFNzb5cy5gZnBWyATl4Lk0PZ3BwmcYQWpSk
U01UbSuvDV1Ai2TT1+7eVmGSX6bEHRBhNtMsJzzoKQm5EWR0zLVznxxIqbxhAe7i
F6YM40AIOw7n60RzKprxaZLvcRTDOaxxp5EJb+RxBrO6WVcmeQD2+A2iMzAo1KpY
oJ2daZH9
-----END CERTIFICATE-----
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.