Top Ad unit 728 × 90

How to create CSR for SSL Certificate on Apache Server in Windows environment on online VPS or Cloud Server?

 

How to create CSR for SSL Certificate on Apache Server in Windows environment on online VPS or Cloud Server?

CSR (Certificate Security Request)

1.       Open XAMPP Control Panel

2.       Click on Shell button

3.       Then write the command openssl and hit enter

It will appear like following

4.       Setting environment for using XAMPP for Windows.

5.       Administrator@SERVER c:\xampp

6.       # openssl

7.       OpenSSL>

Now input this following command line in OpenSSL prompt

 req -new -newkey rsa:2048 -nodes -keyout YourDomain.com.key -out YourDomain.com.csr

OpenSSL> req -new -newkey rsa:2048 -nodes -keyout YourDomain.com.key -out YourDomain.com.csr

Generating a RSA private key .....+++++ .......................................+++++ writing new private key to ' YourDomain.com.key' -----

You are about to be asked to enter information that will be incorporated

into your certificate request.

What you are about to enter is what is called a Distinguished Name or a DN.

There are quite a few fields but you can leave some blank

For some fields there will be a default value,

If you enter '.', the field will be left blank.

-----

 

8.       Country Name (2 letter code) [AU]:IN

9.       State or Province Name (full name) [Some-State]: West Bengal

10.   Locality Name (eg, city) []: Kolkata

11.   Organization Name (eg, company) [Internet Widgits Pty Ltd]: xyz company

12.   Organizational Unit Name (eg, section) []:xyz unit

13.   Common Name (e.g. server FQDN or YOUR name) []: YourDomain.com

14.   Email Address []: xyz@ YourDomain.com

 

15.   Please enter the following 'extra' attributes

16.   to be sent with your certificate request

17.   A challenge password []: you can leave it blank

18.   An optional company name []: xyz company

19.   OpenSSL>

Done. Now you can see two files have been created under xampp folder i.e. YourDomain.com.csr and YourDomain.com.key  One is certificate security request file and another one is certificate key file.

Now send the YourDomain.com.csr file to the certificate issuer or from where you want to purchase SSL Certificate and next follow the process unless or until they provide a SSL Certificate file named as YourDomain.com.crt

Now you have got total three files 1. YourDomain.com.crt 2. YourDomain.com.csr and 3. YourDomain.com.key

 

Now locate the YourDomain.com.crt file under xampp folder Now you can see total 3 files mentioned above under xampp folder.

Last and final step, open httpd_ssl.conf under xampp/apache/conf/extra folder and configure it as follows-

<VirtualHost _default_:443>

DocumentRoot “Your Website's Root folder location”

ServerName www.example.com:443

SSLEngine On

SSLCertificateFile "c:/xampp/domain.crt"

SSLCertificateChainFile “c:/xampp/ca_bundle.crt" #if provided

SSLCertificateKeyFile " c:/xampp/domain.key"

</VirtualHost>

Now restart Apache server again and check your website with giving https://yourdomain.com That’s all.

How to create CSR for SSL Certificate on Apache Server in Windows environment on online VPS or Cloud Server? Reviewed by Ashok Sen on 16:43:00 Rating: 5

No comments:

Website Design Company at Kolkata All Rights Reserved © 2014 - 2019
Developed by Asenwebmedia

Contact Form

Name

Email *

Message *

Powered by Blogger.