perl script for showing ssl certs

2019-08-28 22:23发布

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).

I'm hoping that I can use perl for doing the equivalent of this:

openssl s_client -showcerts -connect www.domain.com:443

标签: perl ssl openssl
2条回答
做自己的国王
2楼-- · 2019-08-28 22:55

You can patch openssl to accept proxys, see openssl patch and openssl s_client using a proxy

查看更多
ゆ 、 Hurt°
3楼-- · 2019-08-28 23:10

You should search around dump_peer_certificate() method from Net::SSLeay module.

See http://www.perlmonks.org/?node_id=70620 and http://metacpan.org/pod/Net::SSLeay

查看更多
登录 后发表回答