如何使用apksigner打印APK证书 [英] How to print certificates of APK using apksigner

查看:87
本文介绍了如何使用apksigner打印APK证书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何找到用于对我的APK文件签名的证书?
SO问题7104624,developer.android.com上的apksigner文档以及其他地方都对此进行了讨论.他们都说要在apksigner verify命令行上使用选项"--print-certs".但是我总是收到错误消息不支持的选项:--print-certs.".

How do I find the certificates used to sign my APK file?
This was discussed in SO question 7104624, apksigner doc on developer.android.com ,and other places. They all say to use the option "--print-certs" on the apksigner verify command line. But I always get error message "unsupported option: --print-certs.".

我已经尝试了apksigner.bat的版本26.0.2、27.0.2和26.0.3都具有相同的结果.

I have tried apksigner.bat for versions 26.0.2, 27.0.2 and 26.0.3 all with the same result.

我可能正在做一些愚蠢的事情,但是我不知道那是什么.有人有类似的经历吗?

I'm probably doing something dumb but I can't figure out what that is. Anybody have a similar experience?

推荐答案

我使用了" apksigner验证myapp.apk --print-certs ".
刚才,我尝试了" apksigner验证--print-certs myapp.apk ",它可以正常工作.我猜选项必须在APK之前 出现.我的错.我知道那是我做的愚蠢的事情.

I had used "apksigner verify myapp.apk --print-certs".
Just now I tried "apksigner verify --print-certs myapp.apk" and that worked. I guess the options must come before the APK. My Bad. I knew it was something dumb I did.

这篇关于如何使用apksigner打印APK证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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