【发布时间】:2012-03-16 01:07:00
【问题描述】:
我正在尝试使用 openssl 获取证书,但它似乎一直挂起。我进行了大量研究,但似乎并非所有可用选项都适用于 Windows。
openssl s_client -showcerts -connect google.com:443 > cert.txt
我试过这个:
openssl s_client -connect xyz:443 < quit.txt > cert.txt
其中quit.txt 包含“退出\n”
来自http://bytes.com/topic/php/answers/8802-automate-openssl-s_client-command-batch-php-script
那没有用。我也看了Openssl s_clinet -connect scripting. Force quit help
我也试过-prexit
我也对此进行了研究,但无法正常工作: https://serverfault.com/questions/139728/how-to-download-ssl-certificate-from-a-website
我做得很好!我设法做了一些我认为不可能的事情,像这个错误这样简单的事情设法阻止了我暂时 :(
【问题讨论】:
-
编辑了基本的拼写和语法,试图让它看起来像你在提出问题时付出了一些努力。将新版本重新定位到 ServerFault,在那里您更有可能得到答案。
-
查看stackoverflow.com/questions/16823068/… -- WScript 中的 SendKeys("\n") 可以让 OpenSSL 在 EOF 无法退出的地方退出。