Keep getting OpenSSL::SSL::SSLError on one environment - ruby-on-rails

I keep getting the following error using a Rails console to interface with a library that interfaces with a web service over HTTPS. The web service is up and works properly and all the other machines in my dev group can run the library appropriately except this one so I am about 99% sure it is a environment issue. I keep trying to figure out how to solve it and am stumped currently. The error I am getting is:
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
I am using ruby-2.0.0-p653 and OpenSSL 0.9.8zg on Mac OSX El Capitan.

Related

Outgoing mail configuration: Redmine on Windows Server 2019

I'm trying to get the outgoing mail going on Redmine on Windows server 2019 (Bitnami stack), but it can't find the mail server certificate. Here's the error:
Email delivery error: SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate)
I've installed the certificate on the server, but obviously Redmine (ActionMailer) is not finding it.
How can I make this certificate available to ActionMailer?
We've gotten around this before by using DAVMAIL and installing the certificate in the Java certificate store, but I think this should doable without resorting to that route.
Thanks!

Rails :OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate)

I have ROR application deployed on multiple EC2 instances in production, some are on Ubuntu
14.04.5 LTS and some on Ubuntu 18.04.2 LTS.
On servers with Ubuntu 18.04.2 LTS once in while the application gets an error while connecting to any S3 (though practically any https URL) and no issues on servers with Ubuntu 14,
Error Occurred: SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate)
After restart it gets resolved without any code change or fix.
On further investigation we see one more diff on the env. servers with this error-
OpenSSL=OpenSSL 1.1.1
servers without any error-
OpenSSL version=1.0.1f
I have found a link here where users are complaining same problem and getting resolved after restart.
So, question--
1.How this issue can be resolved, someone has faced the same or similar problem?
2.What things changes after the restart that application start working fine with same code?
Please help me, looking for some guidance.

OpenSSL::SSL::SSLError when GCM.send_notification

I'm using GCM gem to send push notifications to Android Devices. In production server, notifications are sent perfectly, but when I try to send push notifications in my local, I get the following error:
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
Note that GCM API KEY is set with the same key as production server, and I'm using the same send_notification params that production server. I also add my local IP address in Google Developer Console project credentials (daily updated).
What I am missing?
NOTE: Using RoR v3.2.13, Ruby v2.0.0, OSx El Capitan, and I have installed openssl v1.0.2a-1
Ok, the problem was that I haven't installed curl-ca-bundle, like many similar questions point. When I tried to install curl-ca-bundle with brew, I found that the package was removed. After a bit of research, I could install the ca-cert on my Mac following this steps.
Hope this help someone in future.

Why do I get "bad ecpoint" with OpenSSL::SSL::SSLError Stripe transaction?

I am building a Rails application with stripe integrated. I have everything setup except for when I try to carry out a transaction on my local development environment. I get:
SSL_connect returned=1 errno=0 state=SSLv3 read server key exchange B: bad ecpoint
I tried a lot of different things to get a valid SSL cert on my machine but nothing seems to be working.
It isn't anything to do with my setup because it is working fine on a test heroku server.
Any help would be greatly appreciated.
It typically happens when there are issues with the Ruby/OpenSSL integration. Try updating RVM and reinstalling the libs/ruby.
If you're still having issues, please list the OS, Ruby, OpenSSL and rvm/rbenv versions you're using.

Self-signed certificate with Demo DocusignAPI

I am trying to test my app with the Demo DocusignAPI at using the endpoint https://demo.docusign/net/restapi/v2/
Question: Is a self-signed SSL certificate acceptable when using the Demo endpoint?
I ask because when I try to use the create_envelope_from_document call, I get the following error message, and I'm trying to determine if my use of a self-signed certificate is contributing to the error:
OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed)
I am using ruby 1.9.3 and rails 3.2.13 on Ubuntu 12.04.
Are you talking about including an SSL cert for the event notifications? The only mention I see from their documentation when I search for "SSL" is the
signMessageWithX509Cert
property on the eventNofication object. This can be viewed on several of their api guide pages like this one.
In any case, with all of the comments that have come in on this thread so far I believe your issue is related to your certificates and not with the DocuSign API. Were you able to resolve this yet?

Resources