During the installation process of WebApps, there are cases where users are asked to select an SSL certificate. This is because this certificate is used by the IIS elements.
However, when it comes to an upgrade, you may not want your users to get asked for the SSL certificate again. To achieve that, we will need to implement two custom actions based on the type of installation:
- During the first time install, a custom action that will configure the website with the selected certificate by the user
- During the upgrade process, a custom action that will get the certificate assigned for the website and used when installing the package.
Keep in mind that the website will be removed and reinstalled when the upgrade is applied.
Before applying the custom actions, we first need to:
- Create the IIS dialog.
- Create the IIS page.