ssl - 錯誤自簽名證書獲取鏈 (ssl - Error self signed certificate getting chain)


問題描述

ssl ‑ 錯誤自簽名證書獲取鏈 (ssl ‑ Error self signed certificate getting chain)

我正在學習使用 Gatling 來測試場景

我一直在使用此處文檔中的指南 http://gatling.io/docs/2.1.7/http/recorder.html

因為我的待測試場景包括用谷歌賬號登錄,由於缺少證書而被拒絕。我按照指南生成證書

openssl genrsa ‑out rootCA.key 2048
openssl req ‑x509 ‑new ‑nodes ‑key rootCA.key ‑days 1 ‑out rootCA.pem
openssl x509 ‑outform der ‑in rootCA.pem ‑out gatlingCA.crt
openssl genrsa ‑out device.key 2048
openssl req ‑new ‑key device.key ‑out device.csr
openssl x509 ‑req ‑in device.csr ‑CA rootCA.pem ‑CAkey rootCA.key ‑CAcreateserial ‑out device.crt ‑days 1
openssl pkcs12 ‑export ‑in device.crt ‑inkey device.key ‑out server.p12 ‑name gatling ‑CAfile rootCA.pem ‑caname gatling ‑chain
keytool ‑importkeystore ‑deststorepass gatling ‑destkeypass gatling ‑destkeystore gatling‑custom.jks  ‑srckeystore server.p12 ‑srcstoretype PKCS12 ‑srcstorepass gatling ‑alias gatling

但是在這個命令之後

openssl pkcs12 ‑export ‑in device.crt ‑inkey device.key ‑out server.p12 ‑name gatling ‑CAfile rootCA.pem ‑caname gatling ‑chain

終端提示錯誤:Error self signed certificate getting chain

What'


參考解法

方法 1:

The "Error self signed certificate getting chain." error can be caused by entering identical Distinguished Name data for both of the certificates. Enter different information and this should no longer error.

(by necrofaceKez Floyd)

參考文件

  1. ssl ‑ Error self signed certificate getting chain (CC BY‑SA 2.5/3.0/4.0)

#Testing #certificate #SSL #scala #gatling






相關問題

在線庫報告的錯誤 (Online repository for reported bugs)

INSTAL_PARSE_FAILED_NO_CERTIFICATES - 試圖在 robotsium 上測試不是我的 .apk 文件 (INSTAL_PARSE_FAILED_NO_CERTIFICATES - trying to test not my .apk file on robotium)

沒有模擬器的Android測試 (Android tests without emulator)

Protractor 測試框架的可重用函數 (Reusable functions for Protractor test framework)

隨機失敗的驗收測試錯誤:斷言失敗:在銷毀對像上調用集合 (randomly failing acceptance-tests with Error: Assertion Failed: calling set on destroyed object)

如何在嵌入式系統中執行回歸測試 (How to perform regression tests in embedded systems)

移動應用測試 (Mobile application testing)

互聯網瀏覽器測試 (Internet explorer testing)

在 VS2010 中創建帶有斷言的編碼 UI 測試的工作流程是什麼? (What is the workflow for creating a coded UI test with assertions in VS2010?)

谷歌播放保護阻止安裝我的調試 apk (Google play protect is preventing the installation of my debug apk)

如何使用 codeception seeRecord 函數來測試列的內容? (How can I use codeception seeRecord function for testing contents a column?)

將 JSON 文件作為 Post Request Flask 發送 (Sending JSON File as Post Request Flask)







留言討論