首页 > 解决方案 > 尝试从根证书创建子证书时,Powershell -Signer 命令不起作用

问题描述

我正在尝试从 powershell ( MS docs ) 中的根证书创建子证书。不幸的是,该-Signer命令不起作用。该怎么办?

我试图运行的命令是:

$rootcert = ( Get-ChildItem -Path cert:\LocalMachine\My\"64F613A8CC7000B78117775EACEE5B27A0A09F26" )

New-SelfSignedCertificate -certstorelocation cert:\localmachine\my -dnsname "localhost" -Signer $rootcert

我收到以下错误:

New-SelfSignedCertificate:找不到与参数名称“Signer”匹配的参数。

我正在使用 windows 8.1 和 Powershell 版本:

PS版本 5.1.14409.1005

请帮忙?

标签: powershellpowershell-5.0

解决方案


推荐阅读