iis - 为本地主机问题创建自签名证书?
问题描述
我正在尝试使用来自 youtube 的此视频的说明为 localhost 创建一个自签名证书:
https://www.youtube.com/watch?v=PttqtI8ml3E
坏消息是在我将此命令粘贴到 PowerShell 的第一步中:
PowerShell 命令:New-SelfSignedCertificate -Subject "localhost" -TextExtension @("2.5.29.17={text}DNS=localhost&IPAddress=127.0.0.1&IPAddress=::1")
我收到此错误:
在行:1 字符:99
- ... bject localhost -TextExtension 2.5.29.17={text}DNS=localhost&IPAddres ...
~ The ampersand (&) character is not allowed. The & operator is reserved
供将来使用;用双引号 ("&") 将 & 号括起来以将其作为字符串的一部分传递。在行:1 字符:119
- ... tExtension 2.5.29.17={text}DNS=localhost&IPAddress=127.0.0.1&IPAddres ...
~ The ampersand (&) character is not allowed. The & operator is reserved
供将来使用;用双引号 ("&") 将 & 号括起来以将其作为字符串的一部分传递。+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException + FullyQualifiedErrorId : AmpersandNotAllowed
我怎样才能解决这个问题?
解决方案
推荐阅读
- python - Django 组表单上的自定义权限
- javascript - 将值从文本框传递到 chrome_extension 中的扩展
- php - 使用 Events Calendar Pro 动态填充 GF 下拉菜单
- c# - 如果更改类中父实体的导航属性,是否需要手动更改外键?
- json - ROS服务保存文件失败
- python - Python:如何在用户输入 3 个无效值后结束程序并防止以下函数在不使用系统退出/中断的情况下运行?
- assembly - 如何在知道指针的情况下获取内存地址
- typescript - 如何在@types repo 中获取所有 Typescript 定义文件的完整列表?
- python - sns:如何获取令牌以使用 boto 确认订阅?
- android - Android Freemarker 类合并