Apache Certificate Generate

Posted by Revolution Wed, 24 May 2006 15:41:00 GMT

Apache Self-Signed SSL Certificate and Key - Quick and Dirty Following is a quick listing of the commands you need to use when setting up an SSL key for Apache that doesn't require a passphrase to be entered during normal operations, and includes a self-signed certificate so you needn't bother with cert requests and CAs. The sequence of events is to create a 3DES key, remove the passphrase, and then generate a self-signed certificate. The following commands are to be entered via the command line, with each openssl statement requiring interactive input. Performed on Red Hat Linux, these instructions ought to also work on other flavors of Unix with OpenSSL and Apache installed.

openssl genrsa -des3 -out pass.key 1024
openssl rsa -in pass.key -out server.key
openssl req -new -key server.key -x509 -out server.crt -days 999

แล้วไปเพิ่ม ในส่วนที่จะต้องการเรียกใช้ https นะ

SSLEngine  on
SSLCertificateFile /etc/apache2/ssl/server.crt
SSLCertificateKeyFile /etc/apache2/ssl/server.key

Comments - (Leave a comment)

Trackbacks

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

Leave a comment