Hello everyone,
I want to implement ssl and I have this error
Url verifyuser with https gives me this error: data empty
With only http works fine
------ Running dev 'app tv' main ------
Url verifyuser = https://mychanneltest.com/RokuDev/verify_user.php?user=test&pass=test&idu=1GN63R123456&d=Roku%203
BRIGHTSCRIPT: ERROR: ParseJSON: Data is empty: pkg:/source/conexionserver.brs
(228)
function verify_user(user As String, pass As String) As Object request = CreateObject("roUrlTransfer")
user = getStrValFromReg("user_apptv", "data_apptv")
pass = getStrValFromReg("pass_apptv", "data_apptv")
url = UrlServer()+"/RokuDev/verify_user.php?user=" + urlencode(user) + "&pass=" + urlencode(pass) + "&idu=" + GetDeviceESN() + "&d="+ urlencode(device())
print "Url verify_user = "; url
ba = CreateObject("roByteArray")
ba.FromAsciiString(user+":"+pass)
request.AddHeader("X-Roku-Reserved-Dev-Id", "6874f4tg626d99c29b30a689254ed2baa6252g11")
request.AddHeader("X-Content", ba.ToBase64String())
request.SetUrl(url)
html = request.GetToString()
data = html.Trim()
json = ParseJSON(data) if json <> invalid then
'print "data = "; json.mensaje
return json
else
return []
end if
End Function
I read that I have to add in apptv the certificate file (pkg: /cert/cert.pem)
I have these 3 files on my server
Which of these 3 files do I need to add ?
SSLCertificateKeyFile /etc/ssl/ssl.key/michannel.key
SSLCertificateFile /etc/ssl/ssl.crt/d2a8843b0a103367.crt
SSLCertificateChainFile /etc/ssl/ssl.crt/gd_bundle-g2-g1.crt
Do I need to add a special roku certificate?
And if so, where do I download it (In sdk I did not find it)?
thanks in advanced ¡