我正在尝试在 CMD 中执行此命令:
netsh http add sslcert ipport=0.0.0.0:443 certhash=89857a42309423c239f42392384a appid={214124cd-d05b-4309-9af9-13123454a52b}
并收到错误消息:SSL Certificate add failed, Error: 183 Cannot create a file when that file already exists.
如果已添加证书,如何将证书添加到 iport?
最佳答案
这意味着该端口已经绑定(bind)了一个证书。如果我们要绑定(bind)新证书,我们需要删除旧证书并绑定(bind)新证书。
netsh http show sslcert > c:\result.txt
netsh http delete sslcert ipport=0.0.0.0:443
netsh http add sslcert ipport=0.0.0.0:443 certhash=89857a42309423c239f42392384a appid={214124cd-d05b-4309-9af9-13123454a52b}
关于cmd - SSL 证书添加失败,错误 : 183 Cannot create a file when that file already exists - How to bound certificate to ipport?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57833235/