Reply
Highlighted
Member
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:

 

https://stackoverflow.com/questions/65432376/why-am-i-getting-ssl-error-with-authorize-net-sdk

 

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


```
request = CreateCustomerProfileRequest.new
request.profile = CustomerProfileType.new
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...