- First log in to your server's terminal through SSH.
- At the command prompt, type the following command:- openssl req -new -newkey rsa:2048 -nodes -keyout yourdomain.key -out yourdomain.csr
Note:- Donot use .com, .in, org etc in the end of your domain name, just type your domainname without these like:- yourdomain.com need to write as yourdomain.key and yourdomain.csr - Now enter the requested information:-
Country Code :- Here you have to mention the two-letter International Organization for Standardization format country code for the country in which your organization is legally registered.
Note :- Please enter the full name.
City/Locality:- Here provide the Name of the city/locality in which your organization is registered/located.
Organization :- Please mention the name under which your business is legally registered. The listed organization must be the legal registrant of the domain name in the certificate request.
Organizational Unit :- Use this field to differentiate between divisions within an organization.Like:- "Information Technology" or "Accounts"
Common Name :- Type the fully-qualified domain name, or URL, you are securing And If you are requesting a Wildcard certificate, add an asterisk (*) to the left of the common name where you want the wildcard, for example *.yourdomain.com.
4. Now Open the CSR in a text editor like:- vi or vim and copy all of the text.
Now you have successfully generated your CSR So to complete the process copy & paste the contents of CSR into the CSR field on the SSL certificate-request page.