當前一直使用SoapUI進行http接口測試,今天進行https接口進行請求發現一直報錯
錯誤信息:
ERROR:Exception in request: javax.net.ssl.SSLException: Received fatal alert: protocol_version
ERROR:An error occurred [Received fatal alert: protocol_version], see error log for detail
問題的原因是什么呢?
通過百度原來SoapUI只支持http格式的接口,現在需要使用https接口,那么就需要為他添加相關的協議
解決方法:
找到soapui安裝路徑下的bin文件
這是我的地址:D:\BaiduNetdiskDownload\soapui\SoapUI-Pro-5.1.2-m-SNAPSHOT\bin
找到bin文件下的SoapUI-Pro-5.1.2-m-SNAPSHOT.vmoptions進行修改
在文件的最下方添加代碼:
-Dsoapui.https.protocols=TLSv1.1,TLSv1.2
添加完畢重啟SoapUI才能生效