Changes for page Development-SSL requests via https protocol
Last modified by Aaron Rosenzweig on 2012/03/19 19:33
From version 26.1
edited by Kieran Kelleher
on 2008/07/21 17:29
on 2008/07/21 17:29
Change comment:
There is no comment for this version
To version 28.1
edited by Kieran Kelleher
on 2008/07/21 14:59
on 2008/07/21 14:59
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -4,16 +4,13 @@ 4 4 5 5 {{info title="Compatability"}} 6 6 7 -These instructions were written and tested on the following, but should work on any 10.5.X config or later7 +These instructions were written and tested on 8 8 * OS X Leopard Client 10.5.4 9 9 * Standard built-in apache2 10 10 * If you like record and verify your OS config as follows: 11 11 ** $ openssl version 12 -*** OpenSSL 0.9.8g 19 Oct 2007 13 -** $ httpd -v 14 -*** Server version: Apache/2.2.8 (Unix) 12 +*** 15 15 16 - 17 17 {{/info}} 18 18 19 19 == Development via Apache Webserver == ... ... @@ -20,52 +20,8 @@ 20 20 21 21 By default, WebObjects development installations typically run via DirectConnect. For https development, we must run thru the apache webserver built in to every OS X machine. So before going any further, configure your WebObjects development environment so that your development application launches and [[runs thru apache>>Development Tools-Running Through Apache]] using the host name "localhost". 22 22 23 -== Configuring Apache for [[https://localhost]]==20 +== Configuring Apache for https:~/~/localhost == 24 24 25 -=== Make the private key and SSL certificate === 26 - 27 -Normally creating SSL certificates for production use is quite involved, however since we are just doing localhost development and testing, we can bypass all the mumbo-jumbo and create the minimal unpassworded private key and SSL certificate the easy way. Do not use this method for creating production server SSL certificates! 28 - 29 -* Open terminal and ... 30 - 31 -{{noformat}} 32 - 33 -$ cd /etc/apache2/ 34 -$ sudo -s 35 -# mkdir devsslcerts 36 -# cd devsslcerts/ 37 -bash-3.2# mkdir devsslcerts 38 -bash-3.2# cd devsslcerts/ 39 -bash-3.2# openssl req -new -x509 -nodes -out localhost_server.crt -keyout localhost_server.key 40 -Generating a 1024 bit RSA private key 41 -.........................++++++ 42 -.....++++++ 43 -writing new private key to 'localhost_server.key' 44 ------ 45 -You are about to be asked to enter information that will be incorporated 46 -into your certificate request. 47 -What you are about to enter is what is called a Distinguished Name or a DN. 48 -There are quite a few fields but you can leave some blank 49 -For some fields there will be a default value, 50 -If you enter '.', the field will be left blank. 51 ------ 52 -Country Name (2 letter code) [AU]:US 53 -State or Province Name (full name) [Some-State]:Florida 54 -Locality Name (eg, city) []:Tampa 55 -Organization Name (eg, company) [Internet Widgits Pty Ltd]:Five WebObjects Sailors, Inc. 56 -Organizational Unit Name (eg, section) []:Software Engineering Department 57 -Common Name (eg, YOUR name) []:localhost 58 -Email Address []:developer@webobjects.com 59 -bash-3.2# ls -al 60 -total 16 61 -drwxr-xr-x 4 root wheel 136 Jul 21 16:58 . 62 -drwxr-xr-x 10 root wheel 340 Jul 21 16:56 .. 63 --rw-r--r-- 1 root wheel 1497 Jul 21 16:58 localhost_server.crt 64 --rw-r--r-- 1 root wheel 887 Jul 21 16:58 localhost_server.key 65 - 66 - 67 -{{/noformat}} 68 - 69 69 == Detecting SSL == 70 70 71 71 Code for detecting whether SSL is active for the current request: