HTTPS document

How to setup HTTPS in a Windows Server?

Install Https apache

1. Download apache_x.x.x-win32-x86-openssl-x.x.x.msi
from http://httpd.apache.org/
2. Install the apache_x.x.x-win32-x86-openssl-x.x.x.msi setup file.

Setting up HTTPS on a Windows Server

1. open command prompt and run the below command

   i. cd "C:\Program Files\Apache Software Foundation\Apache2.2\bin"
   ii. set OPENSSL_CONF="C:\Program Files\Apache Software Foundation\Apache2.2\conf\openssl.cnf"
   iii. openssl req -new -key server.key -out server.csr

2. Fill the value one by one (see the example below)
    Enter pass phrase for server.key: You will be asked to enter information that will be incorporated for your certificate request. What you enter is called a Distinguished Name or a DN. In some of the fields, there is a default value.
There are few fields which you can leave blank. Enter '.' to leave the fields blank.

    Country Name (2 letter code) [GB]:IN
    State or Province Name (full name) [Berkshire]:TamilNadu
    Locality Name (eg, city) [Newbury]:Chennai
    Organization Name (eg, company) [My Company Ltd]:My Company Pvt.Ltd
    Organizational Unit Name (eg, section) []:IT
    Common Name (eg, your name or your server's hostname) []:my.webreporter.com
    Email Address []:admin@gmail.com

    Please enter the following 'extra' attributes to be sent with your certificate request
    A challenge password []:
    An optional company name []:mycompany

3. Now you can get server.csr,server.key file. Use the .csr file to get .crt from SSL vendor (www.comodo.com). Once certificate verification is completed, get the .crt file from mail. Get the .crt file using the below reference.
https://www.instantssl.com/

4. Copy the .crt, .key file into C:\Program Files\Apache Software Foundation\Apache2.2\key

Configuring Apache to run SSL/HTTPS server

1. Modify the "C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf" file with NotePad++
2. Remove any pound sign (#) characters proceeding it in the file httpd.conf.
    LoadModule ssl_module modules/mod_ssl.so
    LoadModule proxy_module modules/mod_proxy.so
    LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
    LoadModule proxy_balancer_module modules/mod_proxy_balancer.so

    Include conf/extra/httpd-vhosts.conf

3. Now, modify the "C:\Program Files\Apache Software Foundation\Apache2.2\conf\extra\httpd-vhosts.conf". Leave all the default options as it is but make sure to modify the following section according to your need.

<VirtualHost *:80>
    ServerName   my.webreporter.com
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</VirtualHost>

  <VirtualHost _default_:443>
    ServerAdmin some@email.com
    DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"
    ServerName my.webreporter.com:443
    ServerAlias my.webreporter.com:443
    ErrorLog "logs/wrp-error.log"
    CustomLog "logs/wrp-access.log" common
    SSLEngine on

    SSLCertificateFile "C:/Program Files/Apache Software Foundation/Apache2.2/key/server.cert"

    SSLCertificateKeyFile "C:/Program Files/Apache Software Foundation/Apache2.2/key/server.key"

ProxyPass / ajp://localhost:8483/ retry=0
ProxyPassReverse / ajp://localhost:8483/

</VirtualHost>
  
Opening SSL/HTTPS port on Windows
Now, you need to open an exception in Windows Firewall for TCP port 443. For this, go to “Windows Firewall” settings in Control Panel and add a port in the exception section. Restart the Apache server.

Reference:
https://support.godaddy.com/help/article/5238/installing-an-ssl-certificate-in-apache?countrysite=in
http://httpd.apache.org/docs/current/ssl/ssl_howto.html
https://support.comodo.com/index.php?/Default/Knowledgebase/Article/View/637/0/certificate-installation-apache--mod_ssl
https://www.instantssl.com/



    • Related Articles

    • How to setup your hardware?

      Introduction Welcome to our guide on setting up your hardware. This document aims to help you understand the basics of hardware and the necessary steps to set up your system to ensure a smooth installation process. What is hardware? Hardware refers ...
    • Videos to configure, setup, reinstall the Server and Client

      RPOS7 Set-up Installation System Requirements: Please refer the link below: https://community.gofrugal.com/support/gofrugal/System-Configuration.html Server GoFrugal RPOS7 - Setup Free Server Reinstallation with backup GoFrugal RPOS7 - Reinstallation ...
    • Item Master setup for weighable Items - Barcode Weighing Scale RPOS7.

      To setup the Item Master as per the Barcode Weighing Scale configuration, do the following: Let's take an example of Countable Items: Step 1: Go to Inventory > Masters > Items Step 2: In General Tab, put the name as COCONUT. Step 3: Click on Sales ...
    • Selecting and installing the setup with order number

      Installation with the order number   In the registration screen, 1. Select the option 'I have already purchased your product'. 2. Select the option 'I have order number and want to install the application with a fresh database'.   3. Enter the order ...
    • Do you know how to set up a Supplier Calendar / Reorder Days for a supplier?

      Concept of Supplier Calendar / Reorder Days for a Supplier: In retail business, a supplier calendar is a schedule that outlines the delivery of goods or services from the supplier to the retailer. It is an important tool for managing the supply chain ...