Link to home
Start Free TrialLog in
Avatar of bobbailey22
bobbailey22

asked on

APPCMD to enable central certificate store and SNI?

Hello,

I have 6 web servers that we are building for our new production environment and have used appcmd to assign bindings to each of our 300+ websites on one of the servers to test it out.  (needless to say I don't want to manually add bindings one at a time for almost 2000 sites)  I am looking for a way to automate the enabling of the respective "use central certificate store" and "require Server Name Indication" check boxes programatically.  The Appcmd script below works great and I can use the central certificate store and SNI once I have manually enabled the check box for it in the bindings section of IIS 8.

appcmd set site /site.name:"mydomain.com" /+bindings.[protocol='https',bindingInformation='x.x.x.x:443:customer.mydomain.com']

Does anyone know of a command I can add to each line of my script to enable those two check boxes, or of a way to script the enabling of it later in batch?

Thank you
unassigned.png
enabled.png
Avatar of Mahesh
Mahesh
Flag of India image

I have half answer I think

appcmd set site "My site name" /bindings:"https://server.domain.com:443"  should take care of centralize certificate store
Avatar of bobbailey22
bobbailey22

ASKER

I will try that command and let you know, it may take some time as I am working offsite today.  Will that enable Server Name Indication as well?
ASKER CERTIFIED SOLUTION
Avatar of bobbailey22
bobbailey22

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
We ended up finding the best solution with the help of one of our technicians.