证书指纹无效? [英] Certificate fingerprint is invalid?

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

问题描述

我已经从密钥库中生成了SHA1代码,但是当我尝试创建OAuth客户端2.0时,Google游戏机却给我错误:证书指纹无效。

I have generated my SHA1 code from my keystore but when I try to create an OAuth client 2.0, Google game console is giving me the error: "Certificate fingerprint is invalid".

有人知道为什么会这样吗?
我该如何解决?

Anyone knows why this happens? How do I fix this?

推荐答案

我已就此问题与Google Play开发者支持联系(我已经有同样的问题)。
这是他们的答案:请确保将密钥设置为2048位,并且有效期至少为25年。

I've contacted Google Play Developer Support about this issue (I've got a same problem). Here is their answer : Please ensure the key is set to 2048 bit and is valid for at least 25 years.

我已经尝试过,但是可惜我的debug.keystore仍然没有被接受,也许您的运气还不错。

I've tried it, but sadly my debug.keystore is still not getting accepted, maybe there will be some luck on your side.

$ keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000

$ keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000

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

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