dreamer2057
10 years agoChannel Surfer
SSL --cert --key options
Hello! How to use SSL connection with custom certificate and key?
CURL request:
--cert certificate.crt --key private_key.key
Many different attempts with code like this didn't work:
Options:
in different combinations didn't help.
CURL request:
curl https://service:port --cacert cafile.pem --cert certificate.crt --key private_key.key
--cert certificate.crt --key private_key.key
Many different attempts with code like this didn't work:
http = CreateObject("roUrlTransfer")
port = CreateObject("roMessagePort")
http.SetUrl(url)
http.SetMessagePort(port)
http.SetRequest("POST")
http.AddHeader("Content-Type", "application/json")
http.AddHeader("X-Roku-Reserved-Dev-Id", "")
http.SetCertificatesFile("pkg:/source/certificate.crt")
http.InitClientCertificates()
http.RetainBodyOnError(true)
Options:
EnablePeerVerification(false{ or true })
EnableHostVerification(false{ or true })
in different combinations didn't help.