Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Obtain the fingerprint of the SSL certificate

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Every SSL certificate has fingerprint information. If you want to obtain it, you can use openssl or certutil tools on non-Windows and Windows platforms respectively.

Basic syntax:

Openssl x509-fingerprint-in cerfile.crt

If the file cannot be read, it is very likely that the format is not specified, try the following

Openssl x509-fingerprint-in cerfile.crt-inform PEMopenssl x509-fingerprint-in cerfile.crt-inform DER

If you need to specify to display fingerprint information encoded by SHA1 or SHA256 algorithm, append parameters

Openssl x509-fingerprint-sha1-in cerfile.crtopenssl x509-fingerprint-sha256-in cerfile.crt

Er, it seems that the certutil under the Windows can not output a single item, but can only output all the information together.

Certutil-dump certfile.crt

Well, the "certificate hash (md5):" and "certificate hash (sha1):" in the tail section of certutil-dump output is fingerprint information.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report