- Login เข้าเครื่องโดยใช้สิทธิ์ root
- เริ่มต้นโดยทำการ Generate Private Key ด้วยการพิมพ์คำสั่งต่อไปนี้
openssl genrsa -out /etc/httpd/ssl/privatekey.key 2048
หมายเหตุ /etc/httpd/ssl/ คื่อที่เก็บ file privatekey.key 2048
- ทำการ 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