思路是將客戶端正確的keystore發送給服務端進行認證。如果是壓測或者測試多個接口的話,用Once Only Controller來控制,認證一次就可以了
根據開發提供keystore&truststore以及生成這兩種密鑰的passwd,應該是可以只設置keystore的,truststore不設置經測試也是可以的。其實這樣也是比較符合情理的,測試接口的過程中,client端沒有必要去驗證server端的合法性。
今天遇到一種特殊情況,key和crt在win10上面報錯,但是在linux上可以正常
該問題參考了如下兩個鏈接:https://github.com/jeroen/curl/issues/127 https://github.com/curl/curl/issues/568
Key&truststore的說明:
https://blog.csdn.net/chenzanlong123/article/details/11784143
https://lukejin.iteye.com/blog/605634
公鑰、私鑰、證書說明:https://blog.csdn.net/sealyao/article/details/5761747