我想使用openssl来获得证书,并且它似乎保持挂起。我做了大量的研究,但并不是所有的可用选项都可以在Windows上运行。openssl挂起并不退出
openssl s_client -showcerts -connect google.com:443 > cert.txt
我已经试过这样:
openssl s_client -connect xyz:443 <quit.txt> cert.txt
凡quit.txt
包含http://bytes.com/topic/php/answers/8802-automate-openssl-s_client-command-batch-php-script
这并不工作 “退出\ n” 。我又看了看Openssl s_clinet -connect scripting. Force quit help
我也曾尝试-prexit
我也研究过这也并不能得到它的工作: https://serverfault.com/questions/139728/how-to-download-ssl-certificate-from-a-website
我在做这么好!我设法做了一些我认为不可能的事情,像这个bug一样简单的事情设法阻止我暂时 :(
编辑基本的拼写和语法,试图使它看起来像你把一些精力来问这个问题。将新版本重新定位到ServerFault,在那里您更可能得到答案。 – 2012-02-26 03:02:24
检出http:// stackoverflow。com/questions/16823068/gnuwin32-openssl -s-client-conn-to-websphere-mq-server-not-closing-at -eof-hangs -WordScript中的SendKeys(“\ n”)可以使OpenSSL退出, EOF不能。 – clacke 2013-10-13 07:37:42