我正在开发使用ruby on rails构建的API的salesforce应用程序。最初这个应用程序工作正常,直到我在使用Jenkins部署应用程序时遇到错误。我检查了日志,并提到“需要更强的安全性,要访问此网站,更新您的Web浏览器或升级操作系统以支持TLS 1.1或TLS 1.2。Salesforce禁用TLS 1.0”。Salesforce禁用TLS 1.0
我可以在我的ROR应用程序中更改哪些内容来解决此错误。我已经尝试将openssl gem添加到我的gemfile中,但问题仍然存在。这里是错误日志:
<table width="100%" height="100%" border="0">
<tr><td width="100%" height="100%"><div class="content"><h1>Stronger security is required</h1><div class="simple"><p>To access this website, update your web browser or upgrade your operating system to support TLS 1.1 or TLS 1.2.</p><p>For more information, see <a href="https://help.salesforce.com/HTViewSolution?id=000221207&language=en_US" target="_blank">Salesforce disabling TLS 1.0</a>.
</p></div></div></td></tr>
</table
取决于您如何托管您的应用。你的ruby应用程序本身不太可能做到https终止(而不是像前面的nginx那样) –
应用程序部署在heroku上。 –
然后tls版本不受你控制(据我所知)。您确定这是触发此错误的应用程序请求(而不是,例如,Jenkins向salesforce API发出的请求)?或者,当您向salesforce API发出请求时会发生这种情况吗? –