小编Ant*_*ino的帖子

在 Windows 上创建代码签名证书以签署 PowerShell 脚本

根据本指南,我尝试创建用于签署 PowerShell 脚本的证书:

CD C:\OpenSSL-Win32\bin
REM Create the key for the Certificate Authority.  2048 is the bit encryptiong, you can set it whatever you want
openssl genrsa -out C:\Test\ca.key 2048
openssl req -config C:\OpenSSL-Win32\bin\openssl.cfg -new -x509 -days 1826 -key C:\Test\ca.key -out C:\Test\ca.crt
REM Now I'm creating the private key that will be for the actual code signing cert
openssl genrsa -out C:\Test\codesign.key 2048
openssl req -config C:\OpenSSL-Win32\bin\openssl.cfg -new -key C:\Test\codesign.key -reqexts v3_req -out C:\Test\codesign.csr
openssl x509 -req -days …
Run Code Online (Sandbox Code Playgroud)

windows powershell certificate openssl

5
推荐指数
1
解决办法
2万
查看次数

标签 统计

certificate ×1

openssl ×1

powershell ×1

windows ×1