Search code examples
iisssliis-7self-signedbuild-script

Automating Self Sign Certificate IIS7 (possibly with appcmd)


I currently have a rake script which compiles, packages and deploys an ASP MVC web project. Currently I am tearing down and setting up IIS every time the build script is run, however I am now looking at adding some SSL additions so will want to deploy the IIS sites with a self signed certificate and set up the bindings to allow for HTTPS.

After having a quick look around the internet looks like there is no simple solution, but just wanted to double check, as ideally I would like to just piggy back on appcmd through the command line and send that some info on what to do, but am open to using another tool providing I can run it through the command line to do the work needed

Any info related to the above would be appreciated!


Solution

  • Ended up using SelfSSL7, which does everything I need. It allows you to give it the site name in IIS and it will create the certificate, also can mark it as trusted, although I am not sure if this only works for IE.