IIS

IIS and Smart Licensing for Delphi

Smart Licensing for Delphi does not directly handle certificate management, but instead defers this to the Internet Information Services (IIS). This has proven to be a reliable approach and reduces our sources of error. In addition, the setup is relatively simple.

Key Points

Benefits

Overall, Smart Licensing for Delphi's integration with IIS for certificate management offers a practical and reliable solution for managing digital certificates in Delphi applications.


Configuration script for IIS

In this case, the server port for the license manager is set to 22222 and the client DLL port is set to 33333. Accordingly, the XML attributes are named as well. The "match" tag corresponds to the PathInfo from the SmartConfigurator.


<?xml version="1.0" encoding="UTF-8"?><configuration>    <system.webServer>        <rewrite>            <rules>                <rule name="RedirectLicenseManagerServer22222" enabled="true" stopProcessing="false">                    <match url="(ds_smartmanager3/.*)" />                    <conditions>                    </conditions>                    <action type="Rewrite" url="http://localhost:22222/{R:0}" appendQueryString="false" />                </rule>                <rule name="RedirectClientDLLServer33333" enabled="true" stopProcessing="false">                    <match url="(ds_smartapp5/.*)" />                    <conditions>                    </conditions>                    <action type="Rewrite" url="http://localhost:33333/{R:0}" appendQueryString="false" />                </rule>                <rule name="https redirect" enabled="false" stopProcessing="true">                    <match url="*" />                    <conditions>                        <add input="{HTTPS}" pattern="off" />                    </conditions>                    <action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" />                </rule>            </rules>            <outboundRules>                <preConditions>                    <preCondition name="ResponseIsHtml1">                        <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />                    </preCondition>                </preConditions>            </outboundRules>        </rewrite>    </system.webServer></configuration>

Configuration in the IIS Manager

Example Configuration LicenseManager

Example Configuration Client

IIS is a registered Trademark of Microsoft Corporation.