Windows PowerShell 创建证书
参考:
https://www.cnblogs.com/1285026182YUAN/p/17140415.html
https://www.cnblogs.com/qindy/p/17358227.html
https://blog.csdn.net/weixin_43394129/article/details/132487335
1查看证书:Get-ChildItem -Path cert:\CurrentUser\My
2.创建证书:New-SelfSignedCertificate -Subject "CN=IDS4_Certificate" -CertStoreLocation cert:\CurrentUser\My -Provider "Microsoft Strong Cryptographic Provider"
3.加载证书:$cert = Get-ChildItem -Path cert:\CurrentUser\My\(your certificate thumbprint)
4.导出公钥:Export-Certificate -Type CERT -Cert $cert -FilePath "./publickey.cer"
5.配置密钥:$cred = Get-Credential 配置秘钥
6.导出私钥:Export-PfxCertificate -Cert $cert -Password $cred.Password -FilePath "./private.pfx"
7.删除证书:Remove-Item -Path ("cert:\CurrentUser\My\" + $cert.Thumbprint)
使用open SSL生成局域网IP地址证书
https://baijiahao.baidu.com/s?id=1724181687090988003&wfr=spider&for=pc