什么是Android密钥库文件,它的用途是什么? [英] What is Android keystore file, and what is it used for?

查看:217
本文介绍了什么是Android密钥库文件,它的用途是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个普遍的问题,但特别是我对它在Android中的使用感兴趣.什么是密钥库文件,它的用途是什么?

This is a general question, but particularly I am interested in it's use for Android. What is a keystore file, and what is it used for?

多个Android应用程序可以使用同一个密钥存储库对其应用程序进行签名(签名" .apk到底意味着什么吗?),这意味着什么(如果有的话)?

Can multiple Android applications use the same keystore to sign their application (what exactly does it mean to "sign" an .apk?), and what are the implications (if any) of this?

推荐答案

我要提供的答案是,密钥库文件将对任何询问的人进行身份验证.它不仅限于对.apk文件进行签名,还可以用于存储个人证书,要传输的签名数据以及各种身份验证.

The answer I would provide is that a keystore file is to authenticate yourself to anyone who is asking. It isn't restricted to just signing .apk files, you can use it to store personal certificates, sign data to be transmitted and a whole variety of authentication.

就您在Android上使用它所做的事情以及自从提到签署apk以来可能在寻找的东西而言,它就是您的证书.您正在使用您的凭据来标记您的应用程序.您可以使用同一密钥对多个应用程序进行商标,实际上,建议您使用一个证书对所编写的多个应用程序进行商标.轻松掌握属于您的应用程序.

In terms of what you do with it for Android and probably what you're looking for since you mention signing apk's, it is your certificate. You are branding your application with your credentials. You can brand multiple applications with the same key, in fact, it is recommended that you use one certificate to brand multiple applications that you write. It easier to keep track of what applications belong to you.

我不确定您所说的含义是什么.我想这意味着,除了您的证书持有人之外,没有人可以更新您的应用程序.这意味着,如果将其发布到野外,会丢失用于签署应用程序的证书,那么您将无法发布更新,因此请确保该证书的安全并在需要时进行备份.

I'm not sure what you mean by implications. I suppose it means that no one but the holder of your certificate can update your application. That means that if you release it into the wild, lose the cert you used to sign the application, then you cannot release updates so keep that cert safe and backed up if need be.

但是,除了对apk进行签名以使其发布到野外,您还可以使用它通过SSL(与Android相关)以及其他功能来通过SSL对设备进行身份验证.

But apart from signing apks to release into the wild, you can use it to authenticate your device to a server over SSL if you so desire, (also Android related) among other functions.

这篇关于什么是Android密钥库文件,它的用途是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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