Question:
I am completely new to Windows PowerShell.
I am trying to change the IIS’s default web site’s SSL settings from
Required SSL = false and client certificate = ignore
to
Required SSL = true and client certificate = accept
using powershell (I have to configure it to ansible playbook)
I have searched but didn’t get any solution.
Kindly help. Any leads or solution will be appreciated. 🙂
Thank You
Answer:
Use the Set-WebConfiguration
cmdlet. There’s a great configuration reference on IIS.NET that you can use to find the valid values – in this case Ssl
and SslNegotiateCert
:
1 2 |
Set-WebConfiguration -Location "[sitename]" -Filter 'system.webserver/security/access' -Value 'Ssl,SslNegotiateCert' |