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

No server response via https using roUrlTransfer

Thanks to anyone in advance who can help 🙂

In retrieving my user registration code, I'm setting it to an https:// URL (which has been configured with a proper CA and key)

I'm also making sure to call roUrlTransfer.SetCertificatesFile(pkg://somefile.pem)

I'm not getting any response from the web server; its returning nothing. For clarification, the certificate file should contain the certificate from the CA authority correct? I'm placing that certificate into a plain text file and saving with a .pem extension.

This is correct?
0 Kudos
6 REPLIES 6
RokuKevin
Visitor

Re: No server response via https using roUrlTransfer

that is correct... The PEM file you call SetCertificatesFile() on must contain the CA cert that signed your web server cert. Not the web server cert.

You might want to test the PEM file contents vs your website using curl.

--Kevin
0 Kudos
Xerces77
Visitor

Re: No server response via https using roUrlTransfer

Thanks RokuKevin.

That's what I have inside the .PEM file- the certificate I rec'd from the SSL authority. I include that file in my app package. I've tried giving the file either a .pem or .crt extension and still no response.

BTW, the CA certificate has already been added to the web server.
0 Kudos
RokuChris
Roku Employee
Roku Employee

Re: No server response via https using roUrlTransfer

"Xerces77" wrote:
I'm also making sure to call roUrlTransfer.SetCertificatesFile(pkg://somefile.pem)


It could just be a typo in your post, but that path has an extra / in it. It should be pkg:/somefile.pem
0 Kudos
Xerces77
Visitor

Re: No server response via https using roUrlTransfer

Still no response. (and no the extra slash was only a typo on this site)
The .pem file I'm referencing in roUrlTransfer.SetCertificatesFile("pkg:/somefile.pem")
contains the CA I was given after submitting a CSR to RapidSSL. This is correct right?
0 Kudos
Xerces77
Visitor

Re: No server response via https using roUrlTransfer

Fixed thanks for the help I was testing it locally rather than putting it up as a private chan for it to do SSL properly.

Cheers
0 Kudos
RokuKevin
Visitor

Re: No server response via https using roUrlTransfer

Glad you fixed it. Just to avoid confusion, side-loaded channels are capable of doing SSL. You must have changed something else as well....

--Kevin
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.