【发布时间】:2017-03-16 09:48:26
【问题描述】:
我正在使用 Windows 10。我想创建将使用 OutlookAPI 的应用程序。所以我在Write a Ruby on Rails app to get Outlook mail 关注入门教程。
我遇到过SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed这个问题,如下图;
当我在认证阶段成功后尝试getToken 时出现上述问题。
如果有任何建议,我将不胜感激。
【问题讨论】:
-
两个请求.. (1) 请说明错误。图片上的文字太小,无法阅读。此外,搜索引擎无法为未来的访问者检索文本。 (2) 请贴出你用来连接服务器的URL,并贴出
openssl s_client -connect <hostname>:<port> -tls1 -servername <hostname> | openssl x509 -text -noout的输出。通过单击编辑将其添加到您的问题中(不要将其作为评论发布)。否则,我们无法重现它,也没有足够的信息来帮助解决它。 -
我不知道您是如何创建证书的,但
CN=example.com可能是错误的。主机名始终位于 SAN 中。如果它出现在 CN 中,那么它也必须出现在 SAN 中(在这种情况下您必须列出两次)。更多规则和原因见How do you sign Certificate Signing Request with your Certification Authority和How to create a self-signed certificate with openssl?
标签: ruby-on-rails ruby windows outlook openssl