Last modified by Aaron Rosenzweig on 2012/03/19 19:33

From version 31.1
edited by Kieran Kelleher
on 2008/07/21 17:43
Change comment: There is no comment for this version
To version 40.1
edited by Kieran Kelleher
on 2008/07/21 18:25
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -39,7 +39,7 @@
39 39  {{/noformat}}
40 40  
41 41  Next run the one single openssl command that will make the two files we need in their final folder that we just created above.
42 -Note you will be asked for a bunch of info for the certificate. Follow what I have done below. **In particular, enter "localhost" in the Common Name field!**
42 +Note you will be asked for a bunch of info for the certificate. Follow what I have done below. **In particular, enter "localhost" in the Common Name field**
43 43  
44 44  {{noformat}}
45 45  
... ... @@ -77,14 +77,34 @@
77 77  
78 78  === Configure Apache2 to Use Your Development Certificates for localhost ===
79 79  
80 -Using you favorite text editor, edit the apache2 config file at
81 -/etc/apache2/httpd.conf
80 +Using your favorite command line editor, edit the apache config file at
81 +**/etc/apache2/httpd.conf**
82 82  making the changes shown in the following 2 screenshots:
83 83  
84 -Next edit the ssl config file itself making the changes shown in the following sceenshot:
84 +{{panel title="Setting Apache server name to localhost"}}
85 85  
86 -Finally, restart apache
86 +!step1_servernamelocalhost.jpg!
87 87  
88 +{{/panel}}
89 +
90 +{{panel title="Including SSL Configuration file into main Apache config file"}}
91 +
92 +!step2_includesslconfig.jpg!
93 +
94 +{{/panel}}
95 +
96 +Next edit the ssl config file itself at
97 +**/etc/apache2/extra/httpd-ssl.conf**
98 +making the changes shown in the following sceenshot:
99 +
100 +{{panel title="Setting up the SSL Config file"}}
101 +
102 +!step3_sslconfig.jpg!
103 +
104 +{{/panel}}
105 +
106 +Restart apache
107 +
88 88  {{noformat}}
89 89  
90 90  bash-3.2# apachectl graceful
... ... @@ -91,6 +91,14 @@
91 91  
92 92  {{/noformat}}
93 93  
114 +Finally, verify that https is working:
115 +
116 +{{panel title="Verify https://localhost is working"}}
117 +
118 +!httpslocalhost2.jpg!
119 +
120 +{{/panel}}
121 +
94 94  == Detecting SSL ==
95 95  
96 96  Code for detecting whether SSL is active for the current request: