Tag Archives: วิธี Generate Private Key และ CSR บน Linux Apache 2048 linux command

วิธี Generate Private Key และ CSR บน Linux Apache 2048 linux command

  1. Login เข้าเครื่องโดยใช้สิทธิ์ root
  2. เริ่มต้นโดยทำการ Generate Private Key ด้วยการพิมพ์คำสั่งต่อไปนี้

openssl genrsa -out /etc/httpd/ssl/privatekey.key 2048

หมายเหตุ  /etc/httpd/ssl/   คื่อที่เก็บ  file   privatekey.key 2048

  1. ทำการ Generate CSR จากไฟล์ Key ที่ทำการ Gen ไว้ก่อนหน้านี้โดยพิมพ์คำสั่ง

openssl req -new -key /etc/httpd/ssl/privatekey.key -out /root/Desktop/request.csr

หมายเหตุ  out /root/Desktop/request.csr  คือที่เก็บ  file equest.csr

Continue reading