首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Powershell中生成由根证书签名的自签名证书

在Powershell中生成由根证书签名的自签名证书
EN

Stack Overflow用户
提问于 2020-12-05 18:15:22
回答 1查看 137关注 0票数 0

如何使用新的自签名证书生成由根证书签名的自签名证书我有一个根证书我只想知道如何使用-Signer。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-12-05 19:41:58

您已经知道需要使用-Signer参数。只需确保您拥有要用来签署新证书的证书的私钥。因此,基本上只能使用Personal存储中的证书(PowerShell中的“My”)。

示例:

代码语言:javascript
复制
# find a suitable certificate to use as root
ls Cert:\CurrentUser\My\
$root = ls Cert:\CurrentUser\My\c123a6f16a5f165161a1...  # use the thumbprint of one of your certificates

# create a certificate which is signed with your chosen root certificate
New-SelfSignedCertificate -DnsName test.local -Signer $root -CertStoreLocation Cert:\CurrentUser\My\
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65155869

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档