httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dietmar.Muel...@eurotours.at
Subject [users@httpd] Antwort: [users@httpd] https configure question
Date Thu, 24 Jul 2003 10:52:31 GMT

Try to make the SSL Connect like this:


import java.io.*;
import java.net.*;
import java.security.Security;
/**
 *
 * @author  mueller
 */
public class SSL {

    /** Creates a new instance of SSL */
    public SSL() {

        try
        {
            Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider
());
            System.setProperty("java.protocol.handler.pkgs",
"com.sun.net.ssl.internal.www.protocol");

            URL url = new URL("https://wwwet.eurotours.at");

            HttpURLConnection huc = (HttpURLConnection)url.openConnection
();
            huc.setRequestMethod("TRACE");
            huc.setRequestProperty("Host", url.getHost());
            //huc.setDoOutput(true);

            //PrintWriter writer = new PrintWriter(huc.getOutputStream());

            //writer.flush();
            //writer.close();

            BufferedReader br = new BufferedReader(new
InputStreamReader(huc.getInputStream()));
            String line;
            while((line = br.readLine()) != null){
                System.out.println(line);
            }

        }
        catch (MalformedURLException mue)
        {
            mue.printStackTrace();
        }
        catch (IOException io)
        {
            io.printStackTrace();
        }

    }

    public static void main (String[] args)
    {
        new SSL();
    }

}


regards Dietmar





Per Løvmo <Per.Lovmo@epmtech.jotne.com> am 24.07.2003 12:31:18

Bitte antworten an users@httpd.apache.org

An:    "'users@httpd.apache.org'" <users@httpd.apache.org>
Kopie:
Thema: [users@httpd] https configure question


Hi all,

A partner has developed an "repository" running on a tomcat (version
3.2.3).
This web server is then responsible for handling https messages (and works
as expected). I've succeeded communicating with it through the use of a
soap
library (test program).

I've created a GUI-thingy which should collect data from "repository" via
soap, and first thought was that the tomcat (version 4.1.12) which I use,
don't need to know about https, since that is handled through the soap
library (yes the certificate++ is set correctly here).

But I get in the browser:
...
org.apache.jasper.JasperException: unknown protocol: https
     at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2

48)
...
and the "debug" report says:
...
java.net.MalformedURLException: unknown protocol: https
        at java.net.URL.<init>(URL.java:475)
        at java.net.URL.<init>(URL.java:371)
        at java.net.URL.<init>(URL.java:325)
        at
com.Alenia.rtp1113.wp8.SoapHandler.soapOrb.ProxySoap.<init>(Unknown Source)
        at
com.Alenia.rtp1113.wp8.SoapHandler.soapProxies.EntryDeveloperBusinessDelegat

eProxy.<init>(Unknown Source)
        at
org.apache.jsp.testRepositoryLogin_jsp.
_jspService(testRepositoryLogin_jsp.j
ava:56)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
...

I then did install the JSSE, put the library appropriately and put in the
server.xml:
...
    <Connector className="org.apache.catalina.connector.http.HttpConnector"
               port="8443" minProcessors="5" maxProcessors="75"
               enableLookups="true"
            acceptCount="10" debug="0" scheme="https" secure="true">
      <Factory className="org.apache.catalina.net.SSLServerSocketFactory"
               clientAuth="false"
keystoreFile="C:\alenia\repository\tomcat\conf\tomcat.keystore"
               keystorePass="Alenia" protocol="TLS"/>
    </Connector>
...

But I still get the same error in the browser and "debug" report...

Any help would be sincerely appreciated.

Best Regards
Per

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org








---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message