![](/img/trans.png)
[英]How to get a *.cer file to add a self-signed HTTPS certificate as trusted for Java
[英]How to get a *.cer file to add a self-signed HTTPS certificate in command
它與以下問題有關: 如何獲取* .cer文件以將自簽名HTTPS證書添加為Java可信
如答案中所述:
With firefox is is done by double-clicking on the lock in the status bar, clicking on the button "View certificate", then in the "Details" tab, click on "Export..."
我想知道是否可以通過命令獲取.cer文件,以便使流程自動化?
為了通過SSL與服務器進行交互, OpenSSL
是一種眾所周知的工具。 您可以輕松地在Linux或Windows上安裝它。 OpenSSL具有可用於檢索服務器的SSL證書的命令。
請看以下有關通過OpenSSL檢索服務器證書的分步教程的帖子(請特別注意注釋,以使整個過程自動化)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.