I'm trying to execute this command in CMD:
netsh http add sslcert ipport=0.0.0.0:443 certhash=89857a42309423c239f42392384a appid={214124cd-d05b-4309-9af9-13123454a52b}
and got error message:
SSL Certificate add failed, Error: 183 Cannot create a file when that file already exists.
How to add certificate to ipport if the certificate has already been added?
It means that the port has already bounded a certificate. If we want to bound new certificate we need to delete the old one and bound new one.
Check if port has bounded a cert:
netsh http show sslcert > c:\result.txt
Open the result.txt and search for the port (in my case 443)
Delete the old certificate:
netsh http delete sslcert ipport=0.0.0.0:443
Bound new certificate
netsh http add sslcert ipport=0.0.0.0:443 certhash=89857a42309423c239f42392384a appid={214124cd-d05b-4309-9af9-13123454a52b}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With