Change IIS SSL settings using powershell


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.

enter image description here

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:

Leave a Reply