NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: jking on February 12, 2012, 01:33:16 PM

Title: SSL: Always redirect to secure site not workin?
Post by: jking on February 12, 2012, 01:33:16 PM
Bruce,

     I'm testing redirecting with the Always SSL example app and my own app.  The "Always Redirect to a Secure Site" does not seem to be working in either app.  I use http://127.0.0.1:88 and expect the example app (web9) to be redirected to the secure site https://127.0.0.1:881 but I get "Unable to connect" in FireFox and "cannot display webpage" in IE9.  My firewall is set to allow web9 on both a public and private network.  Any known issues or recommendations?

Thanks,

Jeff King
Title: Re: SSL: Always redirect to secure site not workin?
Post by: Bruce on February 14, 2012, 11:45:28 PM
Hi Jeff,

Good question - because the answer is somewhat generic.
When SSL doesn't work, turn off "Suppress Errors" and see what it says.

cheers
Bruce
Title: Re: SSL: Always redirect to secure site not workin?
Post by: Bruce on February 15, 2012, 01:41:40 AM
what you'll see is a "failed to load certificate" error - I've updated the SSL examples in 6.19 to avoid that.

cheers
Bruce
Title: Re: SSL: Always redirect to secure site not workin?
Post by: jking on February 15, 2012, 07:04:03 AM
Bruce,

     I confirmed that when I turn off "suppress errors" I get the error message you mentioned.  However, it seems this is due to the certificates folder, with your settings.crt, not being present in the example app.  So I added my own self-signed SSL certificate and redirection does seem to work as expected. 
     Sorry, my mistake, I should have checked for the certificates folder first.  I'll wait for the 6.19 update and test again with my own app.

Thanks,

Jeff
Title: Re: SSL: Always redirect to secure site not workin?
Post by: Bruce on February 15, 2012, 10:51:11 PM
6.19 is up.