Creating a self-signed certificate

Creating a self-signed certificate

To generate a self-signed SSL certificate, download the OpenSSL installer for Windows from here (please download the first installer from the list: Win64 OpenSSL v3.3.2 Light, and the format is .exe): https://slproweb.com/products/Win32OpenSSL.html
After installing OpenSSL, navigate to the folder where it is installed. Go to Local Disk C:\Program Files\OpenSSL-Win64 and open the Start.bat file and it will open a command prompt.

  1. Generate a Private Key: Use a command like the following in a terminal to generate a private key:  openssl genrsa -out private.key 2048
  2. Create a Certificate Signing Request (CSR): Use the private key to generate a CSR:  openssl req -new -key private.key -out request.csr
  3. You will be prompted to enter information about your organization and domain.
  4. Generate the Self-Signed Certificate: Use the CSR and private key to create a self-signed certificate:  openssl x509 -req -days 365 -in request.csr -signkey private.key -out certificate.crt


Info
Note: By this step, you can download a self-signed SSL certificate with a validity of 365 days (1 year). We suggest generating a self-signed SSL certificate for 10 years. To do this, edit the last command and replace 365 days with 3650 days in the following command: openssl x509 -req -days 3650 -in request.csr -signkey private.key -out certificate.crt

Usually, the generated files will be stored in C:\Users\YourPCName.


    • Related Articles

    • Creating a Wordpress blog on Hostinger and linking it with your Vacation Labs website

      Overview Before you begin - don't skip this section Sign up for a Hostinger plan Adding a website on Hostinger Deleting the WordPress installation to create a new installation in the /blog directory Installation of WordPress in the /blog directory ...
    • Creating your first trip

      The first step to set up a tour is to decide whether it is a short tour, class or certification course, multi day tour or you need custom fields. We have built in type specific features and terminology which will help you customize the tour to your ...
    • Creating Custom Search Filters

      Users aren’t used to having to manually search through hundreds of tours listed to find what they want. When they are ready to book a tour, they know exactly what they want. Why not help your visitors out and help them find what they’re looking for ...
    • Creating and managing collections

      Collections help you categorize your products on the website and eventually they help your customers explore your products and find easily what they are looking for. In order to create a collection, take the steps shown below: Login to your Vacation ...
    • Migrating from another WordPress host to Hostinger

      This support article outlines the steps for migrating your WordPress Blog site from another host to Hostinger. We’ve used SiteGround as an example to illustrate the migration process from SiteGround to Hostinger. Overview Downloading the backup from ...