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

From version 22.1
edited by Quinton Dolan
on 2007/07/12 20:45
Change comment: There is no comment for this version
To version 24.1
edited by Kieran Kelleher
on 2008/07/21 14:21
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -Programming__WebObjects-Web Applications-Development-SSL
1 +Web Applications-Development-SSL requests via https protocol
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.qdolan
1 +XWiki.kieran
Content
... ... @@ -1,5 +1,13 @@
1 -== Detecting SSL ==
1 +== Introduction ==
2 2  
3 +Sooner or later you will need to develop WebObjects applications that work with SSL requests over https protocol. If ssl is configured on your deployment server, you can probably just change http to https in the app entry URL and the app will probably just work over https protocol. However if your application requires security, you cannot just depend on your users typing in a URL that begins with https. Also since SSL encryption adds more load to the webserver, you may want decide that just some pages need to be returned securely over https and the rest returned via plain old http. In any case, you may want to or need to set up your local OS X development machine to support https protocol so that you can properly test your application. This article endeavors to do this in a concise way while referring to 3rd party sources where applicable. Note also that setting up ssl for testing can be a far simpler task (and not really secure) than setting up real authentic SSL certificates for use in a production server.
4 +
5 +== Development via Apache Webserver ==
6 +
7 +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 application launches and runs thru apache.
8 +
9 +== Detecting SSL ==
10 +
3 3  Code for detecting whether SSL is active for the current request:
4 4  I'm told this won't work with IIS:
5 5  
... ... @@ -24,5 +24,3 @@
24 24  log.debug( "secure mode set to " + secureMode );
25 25  
26 26  {{/code}}
27 -
28 -Category:WebObjects