Để tạo CSR cho Tomcat trên Windows, bạn hãy tạo một thư mục C:\Store2015 trên máy chủ.
keytool -genkey -alias tomcat -keyalg RSA -keystore C:\keystore\server.jks -keysize 2048
- Khi được hỏi password, nhập vào changeit(hai lần)
- Khi được hỏi “What is your first and last name?” thì gõ vào tên miền cần mua SSL, ví dụ tencongty.com
- Khi được hỏi “What is the name of your organizational unit?” thì gõ IT Center
- Khi được hỏi “What is the name of your organization?” thì gõ vào tên công ty(chọn tên tiếng Anh hoặc tên tiếng Việt) trong giấy đăng ký kinh doanh của công ty. Lưu ý nhập chính xác từng ký tự
- Khi được hỏi “What is the name of your City or Locality?” thì gõ Ha Noi(tên thành phố nơi công ty đăng ký kinh doanh, không dấu)
- Khi được hỏi “What is the name of your State or Province?” thì gõ Ha Noi(tên tỉnh nơi công ty đăng ký kinh doanh, không dấu)
- Khi được hỏi “What is the two-letter country code for this unit?” thì gõ VN(ghi chữ in hoa)
- Khi được hỏi “Is CN= www.tencongty.com, OU=IT Center, O= Ten cong ty, L=Ha Noi, ST=Ha Noi, C=VN correct?” thì gõ yes
- Khi được hỏi “Enter key password for ” thì gõ changeit. Hỏi lại một password nữa cũng gõ changeit
Gõ lệnh sau:
keytool -certreq -alias tomcat -file C:\keystore\certreq.csr -keystore C:\keystore\server.jks
Khi được hỏi password thì nhập vào changeit
Kể từ lúc này trở đi, thư mục C:\keystore cần được lưu trữ cẩn thận để có thể cài đặt chứng thư số SSL sau khi nhận được từ CA
Vina Aspire is a consulting company, providing IT solutions and services, network security, information security & safety in Vietnam. Vina Aspire’s team includes skilled, qualified, experienced and reputable experts and collaborators, along with major domestic and foreign investors and partners to join hands in building.
Businesses and organizations wishing to contact Vina Aspire Company with the following information:
Email: info@vina-aspire.com | Website: www.vina-aspire.com
Tel: +84 944 004 666 | Fax: +84 28 3535 0668
Vina Aspire – Vững bảo mật, trọn niềm tin