How can I retrieve the TLS/SSL peer certificate of a remote host using python?

前端 未结 4 1238
难免孤独
难免孤独 2020-11-30 22:52

I need to scan through a list of IPs and retrieve the common name from the certificate on that IP (for every IP that allows port 443 connections). I have been able to succes

4条回答
  •  死守一世寂寞
    2020-11-30 23:29

    If anyone is struggling with SNI (Server Name Indication) (mentioned by @mootmoot ) refer to my answer here https://stackoverflow.com/a/49132495/8370670.

提交回复
热议问题