我正在開發使用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發出請求時會發生這種情況嗎? –