how to import x509.pem pk8 file into jks(keystore)

'Migrating Keys from OpenSSL Key Files to keystore' tutorial was cited in a CSDN.NET blog in 2016.

The Migrating Keys from "OpenSSL" Key Files to "keystore" tutorial was cited in a CSDN.NET blog in 2016.

Subject: how to import x509.pem pk8 file into jks(keystore)? 
Date: Dec 24, 2016
Author: jzp12
Source: http://blog.csdn.net/jzp12/article/details/53860189
   ?utm_source=itdadao&utm_medium=referral

為了讓clipse產生的APK有system權限,必須sign platform Keystore

Steps

 java的keystore(jks)算是pkcs12的部分,但由於jks是sun的proprietary的format,
 所以openssl沒法處理jks 要先把他轉成pkcs12再用keytool來轉

 首先要先把 private key (pkcs8) 從DER format轉成PEM format
   openssl pkcs8 -inform DER -nocrypt -in platform.pk8 -out platform.pem  

...

Reference :
 http://conshell.net/wiki/index.php/OpenSSL_to_Keytool_Conversion_tips
 http://conshell.net/wiki/index.php/Keytool_to_OpenSSL_Conversion_tips
 http://www.herongyang.com/crypto/Key_Formats_PKCS8_PKCS12_4

Table of Contents

 About This Book

Reference Citations in 2016

 如何迫使java服务器只接受tls1.2并拒绝tls1.0和tls1.1连接

 cliente soap java

 Android Hints Tweaks and Tips

 [Tutorial] - Play HD Videos with ffplay

 Comment ouvrir les fichiers XML

 Počítačová síť a internet

 Deploying Embarcadero Delphi XE7 and C++Builder XE7 Applications

 Change XSD root namespace in BizTalk

 Заставить пример java + ssl работать

 字符编码的故事:ASCII,GB2312,Unicode,UTF-8,UTF-16

 General Relativity for Laypeople – A First Primer

 XML Dynamic Key Encryption Approach

 Подключение к MS SQL Server из NetBeans

 TCP SSL 서버 성능테스트 관련 질문

 Tạo cửa sổ con nằm trong cửa sổ tab chính trong Java

 FAQ DMP Compatibilité

 How does PHP determine the character encoding in browser POST request data?

 Implementing the Information Security using Modified RSA

 Recording Video of an Android Device

 Getting error for SOAP request "InvalidSecurity: ..."

 SSL证书链包如何工作?

 Finding JNDI/LDAP Connection Security Protocol

how to import x509.pem pk8 file into jks(keystore)

 Reference Citations in 2015

 Reference Citations in 2014

 Reference Citations in 2013

 Reference Citations in 2012

 Reference Citations in 2011

 Reference Citations in 2010

 Reference Citations in 2009

 Reference Citations in 2008

 Reference Citations in 2007

 Reference Citations in 2006

 Reference Citations in 2005

 Reference Citations in 2004

 Reference Citations in 2003

 PDF Printing Version