我正在尝试使用openssl来获取证书,它似乎一直在悬挂.我做了很多研究,但并非所有可用的选项似乎都适用于Windows.
openssl s_client -showcerts -connect google.com:443 > cert.txt
Run Code Online (Sandbox Code Playgroud)
我试过这个:
openssl s_client -connect xyz:443 < quit.txt > cert.txt
Run Code Online (Sandbox Code Playgroud)
其中quit.txt包含来自http://bytes.com/topic/php/answers/8802-automate-openssl-s_client-command-batch-php-script的 "quit \n"
那没用.我还查看了Openssl s_clinet -connect脚本.强制退出帮助
我也试过了 -prexit
我也研究过这个问题并且无法使用它:https: //serverfault.com/questions/139728/how-to-download-ssl-certificate-from-a-website
我做得很好!我设法做一些事情,我认为将是不可能的,这样的错误一件简单的事情设法阻止我暂且 :(