getting Public key of a secure website

风流意气都作罢 提交于 2019-12-11 07:34:18

问题


Other than using browser,How can I get the public key of a websites which use https protocol ? Are there other ways ? Like from the terminal.

Update - i want all the ways so that i can choose what fits best for me


回答1:


openssl s_client -connect example.com:443

Certificate is between -----BEGIN CERTIFICATE----- and -----END CERTIFICATE-----




回答2:


Is this OpenSSL command what you are looking for?

openssl s_client -connect ${REMHOST}:${REMPORT}



来源:https://stackoverflow.com/questions/11108562/getting-public-key-of-a-secure-website

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!