0

I am working on Windows 10. I want to create application which will be using the outlookAPI. So I was following Getting started tutorial at Write a Ruby on Rails app to get Outlook mail.

I've faced of this issue of SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed as shown below;

enter image description here

Issue above appears when I try to getToken after the authentication stage went successfully.

I would be appreciated of any suggestions.

jww
  • 97,681
  • 90
  • 411
  • 885
  • Two requests.. (1) Please state the errors. The text on the picture is too small to read. In addition, the text cannot be indexed by search engines for future visitors. (2) Please post the URL you are using to connect to the server, and post the output of `openssl s_client -connect : -tls1 -servername | openssl x509 -text -noout`. Do so by adding it to your question by clicking *Edit* (and don't post it as a comment). Otherwise, we can't reproduce it and there's not enough information to help troubleshoot it. – jww Mar 16 '17 at 11:18
  • I don't know how you created your certificate, but ***`CN=example.com`*** is probably wrong. Hostnames always go in the *SAN*. If its present in the *CN*, then it must be present in the *SAN* too (you have to list it twice in this case). For more rules and reasons, see [How do you sign Certificate Signing Request with your Certification Authority](http://stackoverflow.com/a/21340898/608639) and [How to create a self-signed certificate with openssl?](http://stackoverflow.com/q/10175812/608639) – jww Mar 16 '17 at 11:22

1 Answers1

0

Try adding gem 'certified' in your gemfile and run bundle install.

gem 'certified'
bundle install
Sajin
  • 1,608
  • 1
  • 14
  • 18