Open navigation

Linux: use of port 443 with a certificate on the user Web page

Prerequisites:

  • Gespage must at least be in version 9.3.0
  • Have a certificate
  • Have the private key for the certificate


There are five steps for setting up this configuration:

  • Installing the certificate on the Gespage server
  • Configuring the port.conf file in the /etc/apache2/ directory
  • Configuring the gespage-ssl. conf file located in the /etc/apache2/sites-availables/ directory
  • Configuration of the application.properties file in the /opt/Gespage/GespageCore/Geps/mobile-gateway/ directory 
  • Restarting services


Step 1: Installing the certificate and private key


For this step, simply copy the certificate and its private key into the /opt/apache2/ssl directory:


Example below for adding the gespage-test-26 certificate:



Step 2: Configuring the port.conf file


Edit the port.conf file located in /opt/apache2/


The service listens on port 7143 by default.

You therefore need to look in this file for the “Listen” parameter and change the value to 443.

Don't forget to save the changes.



Step 3: Configuring the gespage-ssl.conf file


Edit the gespage-ssl.conf file located under /etc/apache2/sites-available/


In this file, we need to setup the use of port 443 for SSL exchanges, and indicate the presence of our certificate.


The lines to be modified are as follows:

  • <VirtualHost *:443>
  • Add the ServerName parameter and enter the name of your server
  • replace the name of the original certificate and key with your own.

Don't forget to save the changes.



Step 4: Declaration of port 443 for the Mobile-Gateway service


Edit the application.properties file in the /opt/Gespage/GespageCore/Geps/mobile-gateway/ folder and modify the last line to replace port 7143 with 443 and save the changes :



Step 5: Restarting services


To apply the changes, the following services must be restarted:

  • sudo systemctl restart apache2
  • sudo systemctl restart mobile-gateway


Once the services are restarted, you can connect to the Gespage user web page through the hostname on port 443:



Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.