2013-10-15 144 views

回答

1
for f in *.pem; do openssl pkcs12 -export -out "`basename $f .pem`.p12" -inkey "$f" -in "$f" -certfile ./myca.pem -password pass:myPass; done 

其中'myPass'(不含引號)是密碼,而myca.pem是CA.