In this step by step guide, I will show you how to create and install SSL certificate on your local development environment, so let's begin

  1. Navigate to apache folder, in my case its located in C:xamppapache

  2. Create new folder named ssl

  3. Add following files

You can update DNS.1 in cert.conf file if needed

  1. Run make-cert.bat file and fill the details as shown in the following image

  2. Navigate to newly created certificate folder, in my case its C:xamppapachessllocalhost


  3. Run server.crt file and click on Install Certificate button

 

  1. Click on Next button

  2. Select Place all certificates in the following store option and browse Trusted Root Certification Authorities and click on the Next button

  3. Click on the Finish button

  4. Click on the Yes button

  5. Click on the OK button

 

  1. Open httpd-vhosts.conf file, in my case its located in C:xamppapacheconfextra and add the following code

<VirtualHost *:80>

    DocumentRoot "C:xampphtdocs"

    ServerName http://localhost/

</VirtualHost>

<VirtualHost *:443>

    DocumentRoot "C:xampphtdocs"

    ServerName https://localhost/

    SSLEngine on

    SSLCertificateFile "ssllocalhostserver.crt"

    SSLCertificateKeyFile "ssllocalhostserver.key"

</VirtualHost>


You can change the DocumentRoot if needed

  1. Restart Apache Server and its done.



About the Author

  • Plot No. B1/823/1A, Aman Nagar, Tanda Road, Nr. KMV College, Jalandhar.
  • +91-9815075800
  • harjitsingh575
  • info@intellisensetechnology.ca
  • 12+ YEARS

    Transforming business Since 2006

  • 1000+ PROJECTS

    Successfully Delivered

  • 5 STAR RATED

    Fully Digital Service

  • 45+ COUNTRIES

    Served

Chat with Us
 

Leave a message, we will contact you shortly

Country Code :