我正在尝试在我的 android 应用程序中实现 google 身份验证。要在 android 应用程序中实现 Google 登录选项,SHA1
需要生成OAuth 2.0 client IDs
.
我正在使用 ubuntu,这是我检索的过程Certificate fingerprints
我输入了以下命令
cd /usr/lib/jvm/java-8-oracle/jre/lib/security
keytool -list -keystore cacerts -v
然后我发现了以下输出
Your keystore contains 177 entries
Alias name: debian:pscprocert.pem
Creation date: Jan 30, 2016
Entry type: trustedCertEntry
Owner: CN=PSCProcert, C=VE, O=Sistema Nacional de Certificacion Electronica, OU=Proveedor de Certificados PROCERT, ST=Miranda, L=Chacao, EMAILADDRESS=contacto@procert.net.ve
Issuer: EMAILADDRESS=acraiz@suscerte.gob.ve, OU=Superintendencia de Servicios de Certificacion Electronica, O=Sistema Nacional de Certificacion Electronica, ST=Distrito Capital, L=Caracas, C=VE, CN=Autoridad de Certificacion Raiz del Estado Venezolano
Serial number: b
Valid from: Tue Dec 28 22:51:00 BDT 2010 until: Sat Dec 26 05:59:59 BDT 2020
Certificate fingerprints:
MD5: XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX
SHA1: XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX
SHA256: XX:XX:XX...
Signature algorithm name: SHA256withRSA
Version: 3
*******************************************
*******************************************
Alias name: debian:ca_disig_root_r2.pem
Creation date: Jan 30, 2016
Entry type: trustedCertEntry
Owner: CN=CA Disig Root R2, O=Disig a.s., L=Bratislava, C=SK
Issuer: CN=CA Disig Root R2, O=Disig a.s., L=Bratislava, C=SK
Serial number: 92b888dbb08ac163
Valid from: Thu Jul 19 15:15:30 BDT 2012 until: Sat Jul 19 15:15:30 BDT 2042
Certificate fingerprints:
MD5: XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX
SHA1: XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX
SHA256: XX:XX:XX...
Signature algorithm name: SHA256withRSA
Version: 3
********************************
********************************
********************************
and other Certificate fingerprints
由于密钥库包含 177 个条目,我应该将其用于 google API 密钥和 OAuth 2.0 客户端 ID。
以前我使用的是最后一个SHA1
,但它对我来说无法验证应用程序。我对此感到非常困惑。请提出一些建议。为什么我得到这些太多的证书指纹实体?感谢您的帮助和建议。谢谢