首先打开Vs2008命令提示窗口
step1: makecert -n "CN=TempCA" -r -sv TempCA.pvk TempCA.cer
step2: makecert -sk SignedByCA -iv TempCA.pvk -n "CN=SignedByCA" -ic TempCA.cer SignedByCA.cer -sr localmachine -ss My
step3:运行-->certmgr.msc查看证书
step4:Import SignedByCA.cer in to Personal Folder
step5:合并签名文件为pfx格式
cmd> pvk2pfx.exe -pvk TempCA.pvk -spc TempCA.cer