快速自颁代码签名证书

保存以下内容为.bat批处理文件,快速生成自己的代码签名证书:

openssl req -new -keyout code/codeSign.key -out code/codeSign.req -config openssl_code.cnf
openssl ca -policy policy_anything -config openssl_code.cnf -out code/codeSign.pem -infiles code/codeSign.req
openssl pkcs12 -export -out code/codeSign.pfx -inkey code/codeSign.key -in code/codeSign.pem -codeSignfile ./demoCA/ca.crt