You can configure the connection to the NoSpamProxy Web App using the PowerShell cmdlet Set-NspWebApiConfiguration. Below you will find a description:
General syntax
Set-NspWebApiConfiguration -Port <int> -DnsName <string> -UseHostHeader <bool> -SslCertificateThumbprint <string> -ShowCertificateSelectorUI -CreateNewCertificate <CommonParameters>
Description
Used to configure the connection with the NoSpamProxy Web App.
Procedure
Enter the following command in the command line:
Set-NspWebApiConfiguration -Port <ThePortUsed> -DnsName <TheDNSName> -UseHostHeader true -ShowCertificateSelectorUI
TIP:
- By setting the value true for the parameter UseHostHeader you configure the use of a host header. This step is optional. The DNS name serves as the host header. See Setting up the multiple assignment of service ports.
- By using the parameter ShowCertificateSelectorUI you determine that a Windows dialogue is displayed with the help of which you can specify the thumbprint of the certificate. Alternatively, you can specify the thumbprint of the certificate via SslCertificateThumbprint or create a new certificate via CreateNewCertificate.
Parameters
-Port <int>
The port to be used for the Web App.
-DnsName <string>
The DNS name used. The DNS name is used as the host header if it is set.
-UseHostHeader <bool>
Determines whether you use a host header.
-SslCertificateTumbprint <string>
The thumbprint of the certificate used.
-ShowCertificateSelectorUI
Determines whether the user interface for selecting the certificate is displayed.
-CreateNewCertificate
Creates a new certificate.
NOTE: After executing the cmdlet, you must restart the NoSpamProxy Command Center.