首页 文章

密钥库更改密码

提问于
浏览
219

我目前有一个密钥库,只有我应该知道的密码 . 我现在需要将该密钥库的访问权限授予其他人,所以我想要:

1)更改密码,以便我可以与他人分享并让他们签名
2)创建一个不同的密码,并允许他们签名 .

这可能吗? - 如果是的话 - 怎么样?

7 回答

  • 2

    要更改密钥库 mykeyfile 内的密钥 myalias 的密码:

    keytool -keystore mykeyfile -keypasswd -alias myalias
    
  • 43

    密钥库只有一个密码 . 您可以使用keytool更改它:

    keytool -storepasswd -keystore my.keystore
    

    要更改密钥的密码:

    keytool -keypasswd  -alias <key_name> -keystore my.keystore
    
  • 408

    [我该怎么办]更改密码,以便我可以与他人分享并让他们签名

    使用keytool:

    keytool -storepasswd -keystore /path/to/keystore
    Enter keystore password:  changeit
    New keystore password:  new-password
    Re-enter new keystore password:  new-password
    
  • 8

    Changing keystore password

    $ keytool -storepasswd -keystore keystorename
    Enter keystore password:  <old password>
    New keystore password: <new password>
    Re-enter new keystore password: <new password>
    

    Changing keystore alias password

    $keytool -keypasswd -keystore keystorename -alias aliasname
    Enter keystore password:  
    New key password for <aliasname>: 
    Re-enter new key password for <aliasname>:
    

    注意:

    **Keystorename**: name of your keystore(with path if you are indifferent folder) 
    **aliasname**: alias name you used when creating (if name has space you can use \) 
    for example: $keytool -keypasswd -keystore keystorename -alias stop\ watch
    
  • 5

    如果密钥库包含具有不同密码的其他密钥条目,您还必须更改它们,或者您可以使用以下命令将密钥隔离到不同的密钥库,

    keytool -importkeystore  -srckeystore mystore.jck -destkeystore myotherstore.jks -srcstoretype jceks
    -deststoretype jks -srcstorepass mystorepass -deststorepass myotherstorepass -srcalias myserverkey
    -destalias myotherserverkey -srckeypass mykeypass -destkeypass myotherkeypass
    
  • 70

    这里有很多答案,但如果您想在Android Studio中更改Mac上的jks密码 . 这是我能找到的最简单的步骤

    1)打开终端并cd到.jks所在的位置

    2) keytool -storepasswd -new NEWPASSWORD -keystore YOURKEYSTORE.jks

    3)输入您当前的密码

  • 19

    KeyStore Explorer是Java命令行实用程序keytool和jarsigner的开源GUI替代品 . KeyStore Explorer通过直观的图形用户界面展示其功能等 .

    • 打开现有的KeyStore

    • 工具 - >设置KeyStore密码

相关问题