用于显示 ssl 证书的 perl 脚本 [英] perl script for showing ssl certs
本文介绍了用于显示 ssl 证书的 perl 脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用 openssl<查看第 3 方主机的 ssl
证书/a>,但 openssl s_client
不支持代理(我的环境中确实有).
I would like to view the ssl
certificate of 3rd party hosts using openssl, but openssl s_client
doesn't support proxies (which I do have in my environment).
我希望我可以使用 perl 来做同样的事情:
I'm hoping that I can use perl for doing the equivalent of this:
openssl s_client -showcerts -connect www.domain.com:443
推荐答案
你应该在 Net::SSLeay
模块中搜索 dump_peer_certificate()
方法.
You should search around dump_peer_certificate()
method from Net::SSLeay
module.
参见 http://www.perlmonks.org/?node_id=70620 和 http://metacpan.org/pod/Net::SSLeay
这篇关于用于显示 ssl 证书的 perl 脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文