powershell - 尝试从根证书创建子证书时,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
请帮忙?
解决方案
推荐阅读
- javascript - Changing Image position when scrolling page
- html - 在悬停时使背景变暗
- c# - 指定的可执行文件不是此 OS 平台的有效应用程序。
- ansible - 如何使用 ansible 下载和提取 apache tomcat 并重命名 unzaip 文件
- javascript - Javascript变量在onload函数内没有改变
- python - pycharm 中的警告,带有 sort(key = len) 函数
- postgresql - 如何解决空 docker-entrypoint-initdb.d 的问题?(PostgreSQL + Docker)
- python - Python:通过将对象分配给另一个对象来修改它
- javascript - 让 ng-view 只显示它的内容,而不是它本身
- docker - 如何在 Docker 上设置 Apache Spark 和 Zeppelin