Openssl
資料:
我的大不部分
opensll
的知識(shí)來(lái)源于這些文章,這些文章包括的內(nèi)容更全面。不過(guò)內(nèi)容繁多,我把一些我常用到的,精練一下,同時(shí)提供一些易用的小工具。
1,
openssl
中文
man
幫助文檔
http://www.chinaunix.net/jh/13/478901.html
?
2,
openssl
幫助文檔
?
http://www.openssl.org/docs/apps/openssl.html#COMMAND_SUMMARY
?
3,
opensll
初步
http://www-128.ibm.com/developerworks/cn/java/j-certgen/index.html
?
4,
中國(guó)協(xié)議分析網(wǎng)
http://www.cnpaf.net/
?
5,
openssl
中文網(wǎng)
www.openssl.cn
?
?
?
openssl
的介紹和概念去
google
一下能找到很多,這里不多說(shuō)了。
在項(xiàng)目開(kāi)發(fā)的過(guò)程中,特別時(shí)測(cè)試的時(shí)候,有的時(shí)候你須要自己建立一個(gè)認(rèn)證局,并簽發(fā)一系列證書(shū)。這個(gè)時(shí)候就會(huì)用到
openssl
我的
opensll
的默認(rèn)目錄時(shí)
:/usr/share/ssl/misc
openssl
一些常用的命令:
做根證書(shū)
/usr/share/ssl/misc/CA -newca
做申請(qǐng):
openssl req –new –keyout xx.key –out xx.req
簽發(fā):
openssl ca -policy policy_anything -out xx.pem -infiles xx.req
做
p12
openssl pkcs12 -export -in xx.pem -inkey xx.key -out xx.p12
?
?
?
做
p7c
cat
xx
.pem demoCA/cacert.pem >tmp$USER.pem
openssl crl2pkcs7 -certfile? tmp$USER.pem -nocrl -out $USER.p7c -outform DER
做
p7c
的時(shí)候一般須要把根證書(shū)放進(jìn)去
?
建議:參考一下
CA
這個(gè)
shell
中的內(nèi)容,會(huì)有挺大幫助
注:
CA Shell
中有
newcert
????
newreq
兩個(gè),不同是
newcert
是自簽發(fā)的,例如跟證書(shū)
newreq
是可以被跟證書(shū)簽發(fā)的