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
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:
Set-WebConfiguration -Location "[sitename]" -Filter 'system.webserver/security/access' -Value 'Ssl,SslNegotiateCert'
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