Creating a certificate for Apache-SSL : สร้าง SSL ให้กับ apach

Posted by Revolution Thu, 31 Jul 2008 08:22:47 GMT

  • Create a key file:

# openssl genrsa -out key.pem 2048
  • Create a certificate request. You will be asked to give information which will be included in the certificate.
# openssl req -new -key key.pem -out request.pem 
  • Create a self-signed certificate that is valid for a year:
# openssl req -x509 -days 365 -key key.pem -in request.pem -out certificate.pem 
  • Concatenate the key and certificate into a single file:
# cat key.pem certificate.pem >apache.pem


การทำแบบนี้เป็นการทำแบบ slef-signing ให้ไปไฟล์เดียว ไม่ได้ทำแบบ PKI ที่มีความปลอดภัยมากกว่า แต่พอไหวๆ



ที่มา: http://cens.ioc.ee/cens/local/howtos/creating-a-certificate-for-apache-ssl

Comments - (Leave a comment)

Trackbacks

Use the following link to trackback from your own site:
/articles/trackback/2187

Leave a comment