http://book.51cto.com/art/200908/146656.htm
Symbian 3rd
自簽名說明文檔
1.
下載必備工具
makesis.exe
makesis
路徑:
/Symbian/9.1/S60_3rd_MR/Epoc32/tools/makesis.exe
makesis
命令可以根據
.pkg
檔案製作目標裝置的檔案的打包安裝程式
(.sis) ,
使用方法很簡單進入到
pkg
檔案目錄執行
makesis myapp.pkg.
提示:我們可以通過運行
makesis –h
來擷取
.pkg
檔案的詳細文法參數對編譯後的目標檔案進行打包。
makekeys.exe
在
s60 3rd
中軟體簽名是必須的
(
在
2nd
中沒有強制要求
)
簽名的軟體是被拒絕安裝的。一般軟體發布測試可以通過自簽名達到普通的使用目的
(
如果要使用擴充的
capabilities
或安全性敏感的
capabilities
則需要
symbian
signed) makekeys
命令可以幫我們建立私密金鑰和自我簽署憑證
.
其使用方法如下:
makekeys –cert
[v] [-len key-length] [-password password] –dname “string” private-key-file
public-key-cert
其中dname
參數為自我簽署憑證提供標識組織機構的資訊字串,
字串通過簡寫名稱標識不同欄位其簡寫標識含義如下.
CN Common Name CN=Joe Bloggs
OU Organisational Unit OU=Development
OR Organisation OR=Acme Ltd
LO Locality LO=
ST State ST=
CO Country CO=GB
EM E-mail address EM=noone@nowhere.com
產生私密金鑰和認證
makekeys -cert -password yourpasswd -dname "CN=Your Name EM=myemail@address CO=myOrg" mykey.key mycert.cer
可從
symbian
官方網站下載該檔案:
http://www3.symbian.com/faq.nsf/AllByDate/0A641D4666011F9C002572250023F01C?OpenDocument
makekeys
的詳細使用方法在此頁面上也有詳細的說明。
signsis.exe
網上到處都有下載的(或從此文附件中下載)
這個檔案的詳細使用方法可參考以下連結:
http://www.symbian.com/developer/techlib/v9.1docs/doc_source/n10356/Installing-ref/SignsisToolReference.guide.html#Installing-ref.signsis-syntax
第三版中使用單獨的
signsis
工具為軟體進行簽名
.
在建立
sis
軟體包及簽署憑證後通過
signsis
工具對軟體進行簽名。
signsis
的用法:
signsis input [output
[certificate key [passphrase] ] ]
2.
軟體打包簽名過程
(1)運行
makesis
命令進行打包
makesis myapp.pkg
(2)產生私密金鑰和認證
makekeys -cert -password yourpasswd -dname "CN=YourName EM=myemail@address CO=myOrg" mykey.key mycert.cer
(3)為產生的
sis
檔案簽名
signsis myapp.sis myapp.sisx mycert.cer mykey.key yourpasswd
附件:attach.rar
--kaixuan's cnblogs