generate csr file
openssl req -new -newkey rsa:2048 -nodes -keyout mydomain.key -out mydomain.csr
You will be prompted to answer a series of questions, explained below.
Country Name – This is the two-letter abbreviation for your country. For example, United States would be US and Great Britain would be GB.
State or Province Name – This is the full name of the state your organization operates from. For example, this might be “California” or “Michigan”.
Locality Name – Name of the city your organization operates from. Examples might include “Lansing” or “Phoenix”. Don’t use abbreviations in this field. For example, “St. Helena” should be “Saint Helena”
Organization Name – The name of your organization. If you are a business, use must use your legal name. If you are applying as an individual, you use your full name instead.
Organizational Unit Name – If applying as a business, you can enter your “Doing Business As” (DBA) name here. Alternately, you can use a department name here. For example, “IT Department” or “Web Administration”.
Common Name – The domain name that you are purchasing a SSL certificate for. This must be a fully qualified domain name (FQDN). An example might be mydomain.com.