如何获得SHA1签名证书的指纹? [英] How to get the SHA1 Signing certificate fingerprint?

查看:1854
本文介绍了如何获得SHA1签名证书的指纹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个自签名的数字证书(或.p12 /型号:2048-RSA)与Adobe航空签署我的Andr​​oid应用程序。如何获得SHA1签名证书的指纹呢?

I created a self-signed digital certificate (.p12 / Type: 2048-RSA) with Adobe Air to sign my Android app. How to get the SHA1 signing certificate fingerprint for it?

推荐答案

您首先需要您的证书从的.p12(PKCS12)转换为二进制.der(DER)格式,以实现这一目标。我能找到的最简单的方法是使用这个工具

You first need to convert your cert from .p12 (pkcs12) to binary .der (DER) format to achieve this. The simplest method I can find is to use this tool.

另外,您也可以通过先产生一个PEM证书,然后DER证书使用这些命令自己做:

Alternatively, you can do this yourself by first generating a PEM cert and then the DER cert using these commands:

openssl pkcs12 -in your_certificate.p12 -out your_certificate.pem
openssl rsa -inform PEM -outform DER -in your_certificate.pem -out your_certificate.der

一旦你有你的DER就可以生成这样的SHA1:

Once you have your DER you can generate the SHA1 like this:

openssl dgst -sha1 your_certificate.der

这篇关于如何获得SHA1签名证书的指纹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆