SSL issues

Questions and Answers on installation, deployment, management, locking, tranasactions of Servoy Application Server

SSL issues

Postby udrescu_bogdan » Fri Dec 21, 2012 12:49 pm

Hi guys,

We just installed an SSL certificate in servoy 5.2's tomcat to use the webclient with https, but it acts strange.

- on Safari the login will open with https but when we're in the app it's http.
- on Firefox the SSL is not used at all though we open the page with https.

We have the webclient inside an iframe with a html page.

Another issue is that I used the settings from here: http://wiki.servoy.com/display/public/D ... rcingHTTPS to enforce http to https and it's OK, except that the urls to our server that I'm using in my code I have to manually change them to https because the redirect is not made.
And more important is that no redirect is done for .jsp files that are called external or any RESTful API calls.

The response I get from the server if I call a RESTful method is this:

Code: Select all
<html><head><title>Apache Tomcat/6.0.20 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The requested resource () is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.20</h3></body></html>


The error actually is:
The requested resource () is not available


While if I remove the security forwarding constraint from web.xml it works.

Any ideea?

Thanks! Bogdan.
udrescu_bogdan
 
Posts: 336
Joined: Fri Jun 18, 2010 3:27 pm
Location: Craiova, Romania

Re: SSL issues

Postby Harjo » Fri Dec 21, 2012 4:10 pm

HI Bogdan,

is the html with with the iframe, also on the same server?
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: SSL issues

Postby ngervasi » Fri Dec 21, 2012 4:23 pm

Hi Bogdan, for deploying webclient the best setup is to host the html page on an apache server configured to use SSL and acting like a reverse-proxy for your servoy server using AJP.
No need to configure servoy for SSL, everything is done on the frontend apache.
Nicola Gervasi
sintpro.com
SAN Partner
ngervasi
 
Posts: 1485
Joined: Tue Dec 21, 2004 12:47 pm
Location: Arezzo, Italy


Return to Servoy Server

Who is online

Users browsing this forum: No registered users and 12 guests

cron