Welcome to Global Trust 256 bit SSL Security Site.

  現在位置 : 技術資源 > 知識庫FAQ > SSL 憑證 > GeoTrust > 產生CSR > Certificate Signing Request (CSR) Generation Instructions - Tomcat

技術 / 資訊搜尋 

Certificate Signing Request (CSR) Generation Instructions - Tomcat

To generate a CSR, you will need to create a key pair for your server. These two items are a digital certificate key pair and cannot be separated. If you lose your public/private key file or your password and generate a new one, your SSL Certificate will no longer match. You will have to request a new SSL Certificate and may be charged.

Step 1: Create a Keystore and Private Key


Please use JDK 1.3.1 or later.


1. Create a certificate keystore and private key by executing the following command:


Unix: $JAVA_HOME/bin/keytool -genkey -alias <your_alias_name> -keyalg RSA -keystore <your_keystore_filename>


This command will prompt for the following X.509 attributes of the certificate:


Country Name (C): Use the two-letter code without punctuation for country, for example: TW. 

State or Province (S): Spell out the state completely; do not abbreviate the state or province name, for example: Taiwan 

Locality or City (L): The Locality field is the city or town name, for example: Taipei. 

Organization (O): If your company or department has an &, @, or any other symbol using the shift key in its name, you must spell out the symbol or omit it to enroll.  Example: XY & Z Corportation would be XYZ Corporation 

Organizational Unit (OU): This field is optional; but can be used to help identify certificates registered to an organization. The Organizational Unit (OU) field is the name of the department or organization unit making the request. 

Common Name (CN): The Common Name is the Host + Domain Name. It looks like www.ssl.com.tw or "company.com".  

NOTE: When prompted for your "first- and lastname", enter the desired Common Name.


Geotrust certificates can only be used on Web servers using the Common Name specified during enrollment. For example, a certificate for the domain "domain.com" will receive a warning if accessing a site named "www.domain.com" or "secure.domain.com", because "www.domain.com" and "secure.domain.com" are different from "domain.com".


2. Specify a password. The default value will be "changeit".


For further information, please refer to the Tomcat Web site.


Step 2: Generate a CSR


1. The CSR is then created using the following command:


keytool -certreq -keyalg RSA -alias <your_alias_name> -file certreq.csr -keystore <your_keystore_filename>


2. To copy and paste the file certreq.csr into the enrollment form, open the file in a text editor that does not add extra characters (Notepad or Vi are recommended).

技術支援系統登入 忘記密碼?


文件區 (3)
SSL 憑證 (0)
CodeSign程式碼簽章 (0)
Email憑證 (24)
隱私條款 法律聲明 安全說明連絡寰宇