与这个问题有关: How to get a *.cer file to add a self-signed HTTPS certificate as trusted for 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 检索服务器证书的分步教程(特别注意评论,以便使整个过程自动化)
关于java - 如何获取 *.cer 文件以在命令中添加自签名 HTTPS 证书,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18954515/