Hướng dẫn tạo CSR cho Tomcat trên Linux

Tạo Keystore

Bạn cần mở kết nối SSH vào server với user root, tạo thư mục chứa keystore:

mkdir /usr/local/ssl/keystore

Chuyển đến thư mục Java/bin và gõ lệnh sau: 

keytool -genkey -keyalg RSA -alias tomcat -keystore /usr/local/ssl/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

Tạo CSR

Gõ lệnh:

keytool -certreq -alias tomcat -file /usr/local/ssl/keystore/certreq.csr -keystore /usr/local/ssl/keystore/server.jks

Khi được hỏi password thì nhập vào changeit

Hệ thống đã tạo xong CSR cho keystore.

Gửi tập tin CSR này cho chúng tôi để đăng ký.

Vina Aspire là công ty tư vấn, cung cấp các giải pháp, dịch vụ CNTT, An ninh mạng, bảo mật & an toàn thông tin tại Việt Nam. Đội ngũ của Vina Aspire gồm những chuyên gia, cộng tác viên giỏi, có trình độ, kinh nghiệm và uy tín cùng các nhà đầu tư, đối tác lớn trong và ngoài nước chung tay xây dựng.

Các Doanh nghiệp, tổ chức có nhu cầu liên hệ Công ty Vina Aspire theo thông tin sau:

Email: info@vina-aspire.com | Website: www.vina-aspire.com
Tel: +84 9024 17606 | Fax: +84 28 3535 0668


Vina Aspire – Vững bảo mật, trọn niềm tin


Bài viết liên quan

About Us

Learn More

Vina Aspire is a premier provider of Cyber Security, Artificial Intelligence & IT solutions and services.

Backed by a team of top-tier experts, seasoned collaborators, and trusted international partners and investors, Vina Aspire delivers innovation, reliability, and excellence across every project.
Our people are intelligent, driven, and passionate about creating cutting-edge technologies that empower businesses, protect digital assets, and generate lasting value for our clients and society.

At Vina Aspire, we don’t just deliver solutions — we build trust, lead transformation, and inspire the future of technology.

may ao thun Kem sữa chua May �o thun May �o thun đồng phục Định cư Canada Dịch vụ kế to�n trọn g�i sản xuất đồ bộ
Translate »