How can I use c# to programmatically change the SSL Settings feature for Default Web Site in IIS to require SSl? I know to use Server Manager from Microsoft.Web.Administration, but I don't know how to edit a feature, or if you can.
Edit: I'm not trying to change the application settings, but access the feature "SSL Settings". I could access the settings and change enabled protocol to https, but this will not do anything because in IIS https enables http as well, and vice versa. In order to only accept https requests, I need to access SSL settings and change it to require ssl.