By default, all the requests to AppServer are sent over HTTP protocol. To configure secure SSL connection, you need to enable SSL for AppServer as described in this section.
For Windows, you can enable SSL connection using *.pfx file or Windows Certificate Store. For details, refer to Microsoft Certificate Store description and AppServer SSL parameters description. For Linux, you can enable SSL connection using *.pem file.
1. Before making any changes, it is recommended to stop AppServer.
2. Locate the AppServerX.xml configuration file in the WebSpellChecker installation folder on your server. The default path to AppServerX.xml file is <WebSpellChecker_Installation_Path>/AppServer/AppServerX.xml
3. Scroll down to the section with parameters responsible for secure connection: <SSL>...</SSL>.
Example below applies to SSL setup for Windows.
Example below applies to SSL setup for Linux.
4. Change the default value for the EnableSSL parameter to true.
<EnableSSL>true</EnableSSL>
5. When configuring an SSL connection, please note that SSL setup steps for Windows and Linux differ:
- for Windows, you can use either a .pfx file or export an SSL certificate from Windows Certificate Store.
- for Linux, you need to specify a path to certificate file and a private key file in *.pem format.
5.1. Configuring SSL connection on Windows.
As it was already mentioned, there are two options how to configure SSL connection using FILE or exporting from STORE. These otpions are defined in the SSLCertificateSource parameter. Depending on your preferences, you need to select one of the options. The default value is STORE.
If you have selected to specify path to your certificate file (*.pfx or *.pem) in the SSLCertificateFile parameter, modify the following SSL connection-related parameter:
<!-- The source of an SSL certificate. Possible values: FILE, STORE. The default value is STORE. --> <SSLCertificateSource>STORE</SSLCertificateSource>
Let’s review these two options and the steps required to configure them.
Option A. Configuring SSL connection using FILE.
1. Change SSLCertificateSource value from STORE to FILE:
<SSLCertificateSource>FILE</SSLCertificateSource>
2. Specify the path to *.pfx file containing the certificate and corresponding private key, for example, C:/Program Files/WebSpellChecker/AppServer/certificate.pfx in the tag below:
<SSLCertificateFile></SSLCertificateFile>
3. If your SSL certificate is password-protected, type the certificate password in the SSLCertificatePassword tag.
<SSLCertificatePassword>your_certificate_password</SSLCertificatePassword>
Option B. Configuring SSL connection by exporting SSL certificate from Windows Certificate Store.
Specify SSLCertificateStoreSettings parameters which is the group of parameters required to use SSL certificate from STORE, namely:
- SSLCertificateCommonName which is a server name protected by the SSL certificate fully qualified HostName; a string value, for example, cloud.kp.org;
- SSLCertificateUseMachineStore which is an option specifying if the machine store certificate is used;
5.2. Configuring SSL connection on Linux.
Unlike Windows, on Linux-based environments there is only option available for SSL connection configuration, namely, FILE.
To configure SSL connection on Linux:
1. Specify the path to certificate file *.pem format, for example, /opt/WSC/AppServer/cert.pem in the SSLCertificateFile tag below:
<SSLCertificateFile></SSLCertificateFile>
2. Specify the path to private key file in *.pem format, for example, /opt/WSC/AppServer/key.pem in the tag below:
<SSLCertificateKeyFile></SSLCertificateKeyFile>
3. If your SSL certificate is password-protected, type the certificate password in the SSLCertificatePassword tag.
<SSLCertificatePassword>your_certificate_password</SSLCertificatePassword>
6. As soon as the modifications are completed, start AppServer for the changes to take effect.