NetTalk Central

Author Topic: SSL: Always redirect to secure site not workin?  (Read 3233 times)

jking

  • Sr. Member
  • ****
  • Posts: 419
    • View Profile
    • Email
SSL: Always redirect to secure site not workin?
« 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: SSL: Always redirect to secure site not workin?
« Reply #1 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: SSL: Always redirect to secure site not workin?
« Reply #2 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

jking

  • Sr. Member
  • ****
  • Posts: 419
    • View Profile
    • Email
Re: SSL: Always redirect to secure site not workin?
« Reply #3 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: SSL: Always redirect to secure site not workin?
« Reply #4 on: February 15, 2012, 10:51:11 PM »
6.19 is up.