Enabling a Secure Notification Service

Perform the following steps to enable a secure notification service:

1.  On the computer where the Web Notification Server is installed, launch the Services window and stop the Web Notification Server service.

2.  Open the TLWebNtfSvr.exe.config file and navigate to the following code:

<service name="TLWebNtfSvr.Service.NotificationPostService" behaviorConfiguration="TLWebNtfSvrBehavior">

<endpoint name="netTcp" address="net.tcp://localhost:8082/TLWebNtfSvr/NotificationPostService" binding="netTcpBinding" bindingConfiguration="PlainNotification" contract="TLWebNtfSvr.Interface.IPostNotification"/>

<endpoint name="mexTcp" address="mex" binding="mexTcpBinding" bindingConfiguration="" contract="IMetadataExchange"/>

<host>

<baseAddresses>

<add baseAddress="net.tcp://localhost:8082/TLWebNtfSvr/NotificationPostService"/>

</baseAddresses>

</host>

</service>

3.  Make the following changes:

◦   Change the value of the bindingConfiguration parameter from PlainNotification to SecureNotifcationBinding. This will require the service to be called only after a user name and password is specified.

◦   Change the value of the behaviorConfiguration parameter from TLWebNtfSvrBehavior to securedBehavior.

4.  Launch the Certificate Manager. In the right pane, double-click the certificate that you want to use for applying encryption.

5.  Copy the value of the Subject field.

6.  In the following code, overwrite the value of the findValue attribute with the text copied in the previous step:

<behavior name="securedBehavior">

<serviceMetadata httpGetEnabled="false" />

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

<serviceDebug includeExceptionDetailInFaults="false" />

<serviceCredentials>

<serviceCertificate findValue="LPTIN24.Campusmgmt.com" storeLocation="LocalMachine" storeName="My" x509FindType="FindBySubjectName"/>

<userNameAuthentication userNamePasswordValidationMode="Custom" customUserNamePasswordValidatorType="TLWebNtfSvr.Authentication,TLWebNtfSvr"/>

</serviceCredentials>

</behavior>

7.  Restart the Web Notification Server service.