I am having the same problem
error setting certificate verify locations:
Our cert bundle includes the CA certs that FireFox trusts. If you call SetCertificatesFile() and pass the bundle it will usually enable SSL communication...
Where would I get the CA certs file from. I have a cacert.pem file from the ROKU SDK and used openssl to convert it to cacert.crt and used this in the code as well. But still getting the error.
It looks like the difference in the NewHttp call made all the difference. Thanks for the offer to look into it!
Can you clarify what is the NewHttp call that made difference for you?
Below is my code, which I have been currently testing by placing it in the Main function. I am trying to get the list of items from the server using the provided server API with its username and password. Any help would be much appreciated.
http = CreateObject("roUrlTransfer")
port = CreateObject("roMessagePort")
ba = CreateObject("roByteArray")
http.AddHeader("Authorization", "Basic " + ba.ToBase64String())
num_tries = 1
while num_tries > 0
if (http.AsyncGetToString()) 'AsyncPostFromString("")
event = wait(0, http.GetPort())
if type(event) = "roUrlEvent"
dd = event.GetString()
code = event.GetResponseCode()
st = event.GetFailureReason()
print code; "--------"
print st; "&&&&&&&&&&&"
num_tries = num_tries -1