I have an "The parameter is incorrect." error on Windows Server 2022
I obtain the appid from certutil -store "MY" %SSL_DOMAIN% ^| find "Key Container"
Cert Hash(sha1): 6d5b92e25d056dc1c6dc671672e0dd2363ea1aac Key Container = !002a.fz-win.tk-2a270cf2-6652-4e79-81ce-36087def3cc2 Provider = Microsoft Software Key Storage Provider
And then use this "Key Container" value to set appid parameter
netsh http add sslcert hostnameport=xxxxxx:443 certstorename=MY certhash=6d5b92e25d056dc1c6dc671672e0dd2363ea1aac appid=!002a.fz-win.tk-f2ee0730-9396-4a0a-8fdb-d62e126a753a
The appid format is wrong and I think that the problem is with the provider on certutil.
These commands are for associate SSL certificate to binding. These commands in legacy windows server work fine. Please can you help me .
These commands are to associate SSL certificate to binding.
[appid=GUID] Specifies the GUID to identify the owning application.
The command will look like this, just as an example:
netsh http add sslcert hostnameport=xxxxxx:443 certstorename=MY certhash=6d5b92e25d056dc1c6dc671672e0dd2363ea1aac appid={00112233-4455-6677-8899-AABBCCDDEEFF}
Related reference links:
https://learn.microsoft.com/en-us/windows/win32/http/add-sslcert
https://superuser.com/questions/1094209/appid-or-guid-of-a-running-service