Hi,
Trying to connect to CAS from R studio. But encountering SSL errors.
We installed the trustedcerts.pem from the viya server to the Trusted Root Certification Authority of the desktop.
Also added System environment variable CAS_CLIENT_SSL_CA_LIST.
Below are the code and log:
library(swat)
Sys.setenv(CAS_CLIENT_SSL_CA_LIST="C:/Users/41274/R and Python Enablement/trustedcerts.pem")
conn_binary <- CAS('mpviyaorccs01.mbtc.mgc.local', 5570, username="", password="XXXXXXXX")
[1] "ERROR: The TCP/IP negClientSSL support routine failed with error 32760 (An unexpected error has occurred. Error number is 32760.), Port 5570, Host 10.131.4.22"
[1] "ERROR: Failed to connect to host 'mpviyaorccs01.mbtc.mgc.local', port 5570."
Error in ans@ref :
no applicable method for @ applied to an object of class "NULL"
Sys.time()
[1] "2023-06-22 16:43:25 CST"
conn_binary <- CAS('mpviyaorccs01.mbtc.mgc.local', 5570, protocol='https', "", password="XXXXXXXX")
Error in curl::curl_fetch_memory(url, handle = handle) :
schannel: failed to receive handshake, SSL/TLS connection failed
Sys.time()
[1] "2023-06-22 16:43:29 CST"
conn_rest <- CAS('mpviyaorccs01.mbtc.mgc.local', 8777, protocol='https', "", password="XXXXXXXX")
Error in doTryCatch(return(expr), name, parentenv, handler) :
https://mpviyaorccs01.mbtc.mgc.local:8777/cas/sessions : HTTP/1.1 401 Unauthorized
Sys.time()
[1] "2023-06-22 16:43:35 CST"
Appreciate any advise.
Thanks
Hi,
Trying to connect to CAS from R studio. But encountering SSL errors.
We installed the trustedcerts.pem from the viya server to the Trusted Root Certification Authority of the desktop.
Also added System environment variable CAS_CLIENT_SSL_CA_LIST.
Below are the code and log:
Appreciate any advise.
Thanks