Wednesday 6 January 2016

netsh http add sslcert fails with error 87

An obscure parameter error may happen when using netsh http add sslcert hostnameport

Command Line Example
netsh http add sslcert hostnameport=localhost:443 certhash=8e58dd9aa3473965b2dc8f08fc0dcbda15e69428 appid={00112233-4455-6677-8899-AABBCCDDEEFF}

SSL Certificate add failed, Error: 87
The parameter is incorrect.

Solution
Specify certstorename, e.g.

netsh http add sslcert hostnameport=localhost:443 certhash=8e58dd9aa3473965b2dc8f08fc0dcbda15e69428 appid={00112233-4455-6677-8899-AABBCCDDEEFF} certstorename=my

SSL Certificate successfully added

2 comments:

  1. Thank you, this solved my problem where adfs did not configure the web application proxy ssl cert properly.

    ReplyDelete