Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 313
Mahatma Aladdin Avatar asked Aug 13 '26 05:08

Mahatma Aladdin


1 Answers

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'
like image 89
Mathias R. Jessen Avatar answered Aug 15 '26 00:08

Mathias R. Jessen