Configuring HTTPs Endpoints for CDA

To Configure HTTPS Endpoints for CDA

By default, CDA only enables HTTP endpoints. To use HTTPS endpoints, open the web.config file and make sure the following <endpoint> sections in the <system.serviceModel> (in bold) are enabled:

<system.serviceModel>

<bindings>

<basicHttpBinding>

<binding name="DeploymentServiceBinding" maxReceivedMessageSize="20000000" maxBufferPoolSize="20000000" maxBufferSize="20000000" messageEncoding="Text" sendTimeout="00:05:00" receiveTimeout="00:05:00">

<security mode="Transport" />

<readerQuotas maxDepth="200" maxStringContentLength="20000000" maxArrayLength="16384" maxBytesPerRead="20000000" maxNameTableCharCount="16384" />

</binding>

<binding name="DeploymentServiceBindingNoSec" maxReceivedMessageSize="20000000" maxBufferPoolSize="20000000" maxBufferSize="20000000" messageEncoding="Text" sendTimeout="00:05:00" receiveTimeout="00:05:00">

<security mode="None" />

<readerQuotas maxDepth="200" maxStringContentLength="20000000" maxArrayLength="16384" maxBytesPerRead="20000000" maxNameTableCharCount="16384" />

</binding>

</basicHttpBinding>

</bindings>

<behaviors>

<serviceBehaviors>

<behavior name="Ventum.Bond2.Web.Service.DeploymentServiceBehavior">

<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />

<serviceDebug includeExceptionDetailInFaults="true" />

</behavior>

<behavior name="Ventum.Bond2.Web.Service.IntegrationServiceBehavior">

<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />

<serviceDebug includeExceptionDetailInFaults="true" />

</behavior>

</serviceBehaviors>

</behaviors>

<services>

<service behaviorConfiguration="Ventum.Bond2.Web.Service.DeploymentServiceBehavior" name="Ventum.Bond2.Web.Service.DeploymentService">

<endpoint address="" binding="basicHttpBinding" contract="Ventum.Bond2.Services.Deployments.IDeploymentService"bindingConfiguration="DeploymentServiceBinding">

<identity>

<dns value="localhost"/>

</identity>

</endpoint>

<endpoint address="" binding="basicHttpBinding" contract="Ventum.Bond2.Services.Deployments.IDeploymentService" bindingConfiguration="DeploymentServiceBindingNoSec">

<identity>

<dns value="localhost" />

</identity>

</endpoint>

<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />

</service>

<service behaviorConfiguration="Ventum.Bond2.Web.Service.IntegrationServiceBehavior" name="Ventum.Bond2.Web.Service.IntegrationService">

<endpoint address="" binding="basicHttpBinding"contract="Ventum.Bond2.Services.Integrations.IIntegrationService" bindingConfiguration="DeploymentServiceBinding">

<identity>

<dns value="localhost"/>

</identity>

</endpoint>

<endpoint address="" binding="basicHttpBinding" contract="Ventum.Bond2.Services.Integrations.IIntegrationService" bindingConfiguration="DeploymentServiceBindingNoSec">

<identity>

<dns value="localhost" />

</identity>

</endpoint>

<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />

</service>

</services>

</system.serviceModel>

To Enable Net 4.8 in the web.config file

To enable Net 4.8 in the web.config file, enhance the httpRuntime entry as follows:

Example: <httpRuntime targetFramework="4.8" executionmaxRequestLength="204800" executionTimeout="360" requestValidationMode="2.0" />

Important! You can verify if the https configuration has been set correctly by accessing the deployment service. Example: https:/sample/Service/DeploymentService.svc