Re: Unable to get http redirect to https on Apache Tomcat 8.5.57

2020-09-15 Thread Lee Jarvis


 Original message From: Mark Thomas  Date: 
9/14/20  3:30 PM  (GMT-05:00) To: users@tomcat.apache.org Subject: Re: Unable 
to get http redirect to https on Apache Tomcat 8.5.57 On 14/09/2020 20:22, Lee 
Jarvis wrote:> Hi all,>  > I’m trying to implement SSL and have defined a 
connector on ports 8080 and 8443. I can connect to either port, but I want any 
incoming HTTP on 8080 to be redirected to the HTTPS port on 8443, but that’s 
not happening as I have things configured below. What> am I missing?>  > 
   
  connectionTimeout="6">     redirectPort="8443">     
relaxedQueryChars='^{}[]|' />>  >  >      
protocol="org.apache.coyote.http11.Http11NioProtocol">     
connectionTimeout="6">     port="8443">     maxThreads="200">     
scheme="https">     secure="true">     SSLEnabled="true">     
keystoreFile="///C:/apache-tomcat-8.5.57/webapps/cmms/WEB-INF/classes/keystore.jks">
     keystorePass="">     clientAuth="false">     
sslProtocol="TLSv1.2">     relaxedQueryChars='^{}[]|' />>  > Thanks & 
regards,Lee JarvisIn the configuration above, there is nothing to configure a 
redirectfrom http to https. You'd normally do this with a transport guarantee 
inweb.xml (other solutions are 
available).Mark‐-Thanks Mark!I added 
transport guarantee to the web.xml and now I'm seeing the expected redirect 
behavior, but another problem has popped up.When the redirect occurs to https, 
my web application just hangs - and I find a "javax.net.ssl.SSLException: 
Received fatal alert: unexpected_message"Prior to adding the transport 
guarantee, I was able to access the web app via http or https and all worked 
fine, but once the redirect took effect - nothing.Thanks for your patient 
help!Lee J.

Re: Unable to get http redirect to https on Apache Tomcat 8.5.57

2020-09-15 Thread Lee Jarvis


 Original message From: Mark Thomas  Date: 
9/14/20  3:30 PM  (GMT-05:00) To: users@tomcat.apache.org Subject: Re: Unable 
to get http redirect to https on Apache Tomcat 8.5.57 On 14/09/2020 20:22, Lee 
Jarvis wrote:> Hi all,>  > I’m trying to implement SSL and have defined a 
connector on ports 8080 and 8443. I can connect to either port, but I want any 
incoming HTTP on 8080 to be redirected to the HTTPS port on 8443, but that’s 
not happening as I have things configured below. What> am I missing?>  > 
   
  connectionTimeout="6">     redirectPort="8443">     
relaxedQueryChars='^{}[]|' />>  >  >      
protocol="org.apache.coyote.http11.Http11NioProtocol">     
connectionTimeout="6">     port="8443">     maxThreads="200">     
scheme="https">     secure="true">     SSLEnabled="true">     
keystoreFile="///C:/apache-tomcat-8.5.57/webapps/cmms/WEB-INF/classes/keystore.jks">
     keystorePass="">     clientAuth="false">     
sslProtocol="TLSv1.2">     relaxedQueryChars='^{}[]|' />>  > Thanks & 
regards,Lee JarvisIn the configuration above, there is nothing to configure a 
redirectfrom http to https. You'd normally do this with a transport guarantee 
inweb.xml (other solutions are 
available).Mark‐-Thanks Mark!I added 
transport guarantee to the web.xml and now I'm seeing the expected redirect 
behavior, but another problem has popped up.When the redirect occurs to https, 
my web application just hangs - and I find a "javax.net.ssl.SSLException: 
Received fatal alert: unexpected_message"Prior to adding the transport 
guarantee, I was able to access the web app via http or https and all worked 
fine, but once the redirect took effect - nothing.Thanks for your patient 
help!Lee J.

Unable to get http redirect to https on Apache Tomcat 8.5.57

2020-09-14 Thread Lee Jarvis
Hi all,
 
I’m trying to implement SSL and have defined a connector on ports 8080 and 
8443. I can connect to either port, but I want any incoming HTTP on 8080 to be 
redirected to the HTTPS port on 8443, but that’s not happening as I have things 
configured below. What
am I missing?
 

 
 

 
Thanks & regards,Lee Jarvis


Unable to get http redirect to https on Apache Tomcat 8.5.57

2020-09-14 Thread Lee Jarvis
Hi all,
 
I’m trying to implement SSL and have defined a connector on ports 8080 and 
8443. I can connect to either port, but I want any incoming HTTP on 8080 to be 
redirected to the HTTPS port on 8443, but that’s not happening as I have things 
configured below. What
am I missing?
 

 
 

 
Thanks & regards,Lee Jarvis