Hello,

I have a "little" problem with SSL.

My program :

class HelloApplication : public WApplication
{
public:
   HelloApplication(const WEnvironment& env);

private:
   void greet();
   void box();
};

HelloApplication::HelloApplication(const WEnvironment& env)
   : WApplication(env)
{
   setTitle("Hello world");

   WPushButton *b = new WPushButton("Greet me.", root());
   b->setMargin(5, Left);
   b->clicked().connect(this, &HelloApplication::box);
}

void HelloApplication::box()
{
   WMessageBox::show("TEST", "box()", Ok);
}

WApplication *createApplication(const WEnvironment& env)
{
   return new HelloApplication(env);
}

int main(int argc, char **argv)
{
   return WRun(argc, argv, &createApplication);
}

I launch my program : ./hello --docroot . --http-address 0.0.0.0 
--http-port 8081

I'm looking at http://172.20.65.30:8081
Reading: /etc/wt/wt_config.xml
[2010-Nov-22 22:36:03.938816] 3028 - [notice] "Wt: initializing built-in 
httpd"
[2010-Nov-22 22:36:03.939166] 3028 - [notice] "Reading Wt config file: 
/etc/wt/wt_config.xml (location = './hello')"
[2010-Nov-22 22:36:03.940880] 3028 - [notice] "Started server: 
http://0.0.0.0:8081";

I click on push button... that works, I can see the nice message box :)

Now, I launch my program with SSL :

#./hello --docroot . --https-address 0.0.0.0 --ssl-certificate 
./cert.pem --ssl-private-key ./cert.key --ssl-tmp-dh ./dh512.pem
Reading: /etc/wt/wt_config.xml
[2010-Nov-22 22:26:51.500787] 2127 - [notice] "Wt: initializing built-in 
httpd"
[2010-Nov-22 22:26:51.500990] 2127 - [notice] "Reading Wt config file: 
/etc/wt/wt_config.xml (location = './hello')"
[2010-Nov-22 22:26:51.502053] 2127 - [notice] "Starting server: 
https://0.0.0.0:443";

I looking at https://172.20.65.30, I can see the home page :)
[2010-Nov-22 22:31:28.840987] 2802 [/ 7BTs27pgNjAn5wXy] [notice] 
"Session created (#sessions = 1)"
Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.2.12) Gecko/20101027 
Ubuntu/10.04 (lucid) Firefox/3.6.12
172.20.65.244 - - [2010-Nov-22 22:31:28.844326] "GET / HTTP/1.1" 200 2768
172.20.65.244 - - [2010-Nov-22 22:31:29.228159] "GET 
/?wtd=7BTs27pgNjAn5wXy&request=script&rand=150220322 HTTP/1.1" 200 28346
172.20.65.244 - - [2010-Nov-22 22:31:29.398049] "POST 
/?wtd=7BTs27pgNjAn5wXy&rand=16978 HTTP/1.1" 200 41


I click the push button...

[2010-Nov-22 22:31:28.840987] 2802 [/ 7BTs27pgNjAn5wXy] [notice] 
"Session created (#sessions = 1)"
Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.2.12) Gecko/20101027 
Ubuntu/10.04 (lucid) Firefox/3.6.12
172.20.65.244 - - [2010-Nov-22 22:31:28.844326] "GET / HTTP/1.1" 200 2768
172.20.65.244 - - [2010-Nov-22 22:31:29.228159] "GET 
/?wtd=7BTs27pgNjAn5wXy&request=script&rand=150220322 HTTP/1.1" 200 28346
172.20.65.244 - - [2010-Nov-22 22:31:29.398049] "POST 
/?wtd=7BTs27pgNjAn5wXy&rand=16978 HTTP/1.1" 200 41

nothing at all... just the red message "Loading..."

I certainly made a mistake but where ?

Thanks,

Jean-Michel



------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to