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

 

posted @   microsoft-zhcn  阅读(194)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 一个费力不讨好的项目,让我损失了近一半的绩效!
· 清华大学推出第四讲使用 DeepSeek + DeepResearch 让科研像聊天一样简单!
· 实操Deepseek接入个人知识库
· CSnakes vs Python.NET:高效嵌入与灵活互通的跨语言方案对比
· Plotly.NET 一个为 .NET 打造的强大开源交互式图表库
点击右上角即可分享
微信分享提示