Posts: 1
Registered: ‎08-21-2014

SSL error connecting to API using Ruby SDK



I've written this up in detail here but haven't gotten any replies:


I'm using the following code and getting an SSL error. We're connecting to the Sandbox for now. 

request =
request.profile =
request.profile.merchantCustomerId = id
request.profile.description = name
response = trx.create_customer_profile(request)


The error:


#<OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate in certificate chain)>


I'm having trouble figuring out what the problem is. My version of `openssl` is 1.1.1h. My partner's machine is not having an issue with the same code.

Not sure if the issue is in a sub-library, or our networks or what. He is using libressl (can't remember the version).


Also not sure if the cert mentioned is mine or one in one of my libs...