Giter Club home page Giter Club logo

keytool-importkeypair's Introduction

Name

keytool-importkeypair – A shell script to import key/certificate pairs into an existing Java keystore

Installing

Add keytool-importkeypair to your PATH

Usage

keytool-importkeypair [-k keystore] [-p storepass]
-pk8 pk8 -cert cert -alias key_alias

This script is used to import a key/certificate pair
into a Java keystore.

If a keystore is not specified then the key pair is imported into
~/.keystore in the user’s home directory.

The passphrase can also be read from stdin.

Example

Adding Android platform level certificates to the Android SDK.

keytool-importkeypair -k ~/.android/debug.keystore -p android -pk8 platform.pk8 -cert platform.x509.pem -alias platform

Feedback

Shoot me an email at [email protected] with any feedback.

keytool-importkeypair's People

Contributors

getfatday avatar keesj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

keytool-importkeypair's Issues

How to use in ubuntu

my signature below

##!/bin/sh

转换平台签名命令

./keytool-importkeypair -k dougkeystore.jks -p 123456 -pk8 platform.pk8 -cert platform.x509.pem -alias doug

demo.jks : 签名文件

123456 : 签名文件密码

platform.pk8、platform.x509.pem : 系统签名文件

demo : 签名文件别名

./signature.sh
" with SHA1 Fingerprint=B6:A1:68:4C:74:D7:89:9D:A8:95:4D:B8:95:78:21:F9:20:C6:6A:64
正在将密钥库 /tmp/keytool-importkeypair.gFJo/p12 导入到 dougkeystore.jks...
, 是否覆盖? [否]: ug
导入新的别名 (按回车以取消对此条目的导入): dougsys
的条目。 别名 doug
已完成导入命令: 1 个条目成功导入, 0 个条目失败或取消

Warning:
JKS 密钥库使用专用格式。建议使用 "keytool -importkeystore -srckeystore dougkeystore.jks -destkeystore dougkeystore.jks -deststoretype pkcs12" 迁移到行业标准格式 PKCS12。

Installation failed with message INSTALL_FAILED_SHARED_USER_INCOMPATIBLE.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.

WARNING: Uninstalling will remove the application data!

Do you want to uninstall the existing application?

Source keystore file exists, but is empty

i`m using following cmd to generate an android signature:
keytool-importkeypair -k demo.jks -p 123456 -pk8 platform.pk8 -cert platform.x509.pem -alias demo

demo.jks is generated from Android Studio.

And nothing occurs but an Exception:
keytool error: java.lang.Exception: Source keystore file exists, but is empty: /tmp/keytool-importkeypair.WmlH/p12

I scanned the folder /tmp/, find no folders named keytool-importkeypair,
so why this exception occurs?

has no signatures that match those in shared user android.uid.system

android studio打包成功的jks一直报has no signatures that match those in shared user android.uid.system; ignoring!但是java -jar signapk.jar platform.x509.pem platform.pk8 old.apk new.apk打包的apk可以正常运行。用的platform.x509.pem platform.pk8都是一样的

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.