问题
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