Powershell IIS7 Snap in Assign SSL certificate to https binding

后端 未结 4 2003
余生分开走
余生分开走 2021-01-11 15:29

As part of our automated build procedure we are trashing and reconstructing our IIS site with powershell scripts.

Once i have created the AppPool and the website com

4条回答
  •  攒了一身酷
    2021-01-11 15:37

    I've found an example here on how one can assign the certificate.

    http://learn.iis.net/page.aspx/491/powershell-snap-in-configuring-ssl-with-the-iis-powershell-snap-in/

    However, it doesn't seem very elegant having to hard code the certificate thumbprint ... so if any one knows of a better method, I'd be glad to hear.

提交回复
热议问题