![](/img/trans.png)
[英]Flutter Failed to read key upload from store "key.jks". Invalid keystore format
[英]Specification of JKS key store format
我想知道是否存在Java中使用的JKS密鑰庫格式的官方規范? 我想從/到PKCS#12編寫轉換器,但不是用Java編寫,因此不幸的是,keytool或Java代碼不是一個選項。
在十六進制編輯器中查看一個告訴我它可能不是ASN.1。 在我開始深入研究OpenJDK之前,嘗試對格式進行逆向工程,有沒有人知道是否存在規范? 到目前為止我找不到任何東西,任何幫助都會非常感激!
我認為你應該從JDK 資源開始你的研究。 那里有一些非常有用的評論。 例如
/*
* KEYSTORE FORMAT:
*
* Magic number (big-endian integer),
* Version of this file format (big-endian integer),
*
* Count (big-endian integer),
* followed by "count" instances of either:
*
* {
* tag=1 (big-endian integer),
* alias (UTF string)
* timestamp
* encrypted private-key info according to PKCS #8
* (integer length followed by encoding)
* cert chain (integer count, then certs; for each cert,
* integer length followed by encoding)
* }
*
* or:
*
* {
* tag=2 (big-endian integer)
* alias (UTF string)
* timestamp
* cert (integer length followed by encoding)
* }
*
* ended by a keyed SHA1 hash (bytes only) of
* { password + whitener + preceding body }
*/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.