Hi,
Thanks for your reply Jean-Luc.
Yes I am trying to open a SSL from within a servlet. Is this not possible with Apachae
using openssl-0.9.5 and mod_ssl together with Jserv.? Is there something for the
Apache that I can load? I saw that your servlet,Super Snoop,was working ok and that
you use Apache/1.3.12 (Unix) mod_perl/1.21 PHP/3.0.12 ApacheJServ/1.1 mod_ssl/2.6.2
OpenSSL/0.9.5 exactly the same as me:-). Do you call, https, from within the servlet.
Any ideas?
//Mikael
PS. Here is the code for the servlet.
-----Original Message-----
From: Jean-Luc Rochat [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 16, 2000 7:36 PM
To: [EMAIL PROTECTED]
Subject: Re: Accessing a servlet in Apache using mod_ssl
"Pettersson Mikael AV/G(TO/EDT/I/V)" wrote:
>
> Hi,
>
> I am using the following:
>
> apache_1.3.12.tar.gz
> ApacheJServ-1.1.tar.gz
> mod_ssl-2.6.2-1.3.12.tar.gz
> openssl-0.9.5.tar.gz
>
> on Solaris 2.7
>
> I have successfully set up SSL with apache and can access the test
> servlets that comes with distribution.
> Then I have "my" own servlet (MePay) that I can access via my NS 4.7
> browser.
> I can access the servlet without SSL but when I am supposed to access
> MePay with SSL (https://cyan144...........:8443. I get the following
> errors, below.
>
> The servlet I have uses a method, getRequestedUrl, to find out if I am
> using http or https in my URL to request servlet..
> When I use that I get http/https for the rest of the functions depending
> on what I called the servlet with, http/https.
>
> This works with Jigsaw/Java Webserver but not Apache/Jserv/mod_ssl. :(
>
> error_log:
>
> [Thu Mar 16 15:36:45 2000] [error] mod_ssl: SSL handshake failed: HTTP
> spoken on HTTPS port; trying to send HTML error page (OpenSSL library
> error follows)
> [Thu Mar 16 15:36:45 2000] [error] OpenSSL: error:1407609C:SSL
> routines:SSL23_GET_CLIENT_HELLO:http request [Hint: speaking HTTP to
> HTTPS port!?]
>
> Please any ideas are welcome.
getRequestedUrl is working here : see the requested URL.
https://jnix.penguinpowered.com/servlets/SuperSnoop
got it : are you trying to open a SSL URL from within a servlet ? If
this is the case you need a ssl (java) package, that is not provided in
JSDK/JRE, but added in Jigsaw & JWS as they are SSL web servers too.
JServ is not a http server, and relies on mod_ssl or alter to accept
https.
Jean-Luc
http://ma-planete.net
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]