Hi there, i downloaded jsse1.0.3_02, with it, i got 3 jars, which you know are:
jsse.jar jnet.jar jcert.jar
I put those on my classpath.
Our website (ezassessment.com) has a Comodo Certificate, which seems to be a branded certificate from Baltimore Certificates. Using the java keytool and the certificate files, i created a file called samplecacerts2 which lets me download the content of https://ezassessment.com but this only works fine using Java 1.4 on my
PC...
My problem is this, I need that code to work on a Pocket PC, which is
running Insignia Jeode VM (equivalent of PersonalJava 3.1.1), and that
is not working, i get the following error:
java.io.IOException: unsupported keyword OID.2.5.4.17
at com.sun.net.ssl.internal.ssl.AVA.<init> (bytecode 446)
at com.sun.net.ssl.internal.ssl.RDN.<init> (bytecode 70)
at com.sun.net.ssl.internal.ssl.X500Name.a (bytecode 106)
at com.sun.net.ssl.internal.ssl.X500Name.<init> (bytecode 11)
at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a (bytecode 27)
at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a (bytecode 71)
at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a (bytecode 4)
at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.connect (bytecode 21)
at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.getInputStream (bytecode 112)
at java.net.URL.openStream (bytecode 4)
at URLReader.main (bytecode 150)
----
I talked about this situation with Baltimore Group guys, I explained
to them the same code, and same JSSE libraries were used on both VMs
but on the Pocket I got that error... they said:
"It looks like the SUN's SSL library you are using does not recognize some parameters in Baltimore's certificate."
Does any one have a clue???? The worst is, that the Pocket PC will work
fine with Thawte's and Verisign's but not with Baltimore's... Is there a solution? or have i rocked bottom here?
public class URLReader {
public static void main(String[] args) throws Exception {
System.out.println(java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider()));
System.getProperties().put(new String("java.protocol.handler.pkgs"),new String("com.sun.net.ssl.internal.www.protocol"));
//Path to certificate trustStore on the Pocket PC
//System.getProperties().put(new String("javax.net.ssl.trustStore"),new String("/Program Files/ezc/samplecacerts2"));
//Path to certificate trustStore file on the PC
System.getProperties().put(new String("javax.net.ssl.trustStore"),new String("E:/Documents and Settings/Angel/My Documents/EZConstruction/src2/samplecacerts2"));
//System.getProperties().put(new String("javax.net.debug"),new String("ssl"));
try {
URL verisign = new URL("https://ezassessment.com");
BufferedReader in = new BufferedReader(
new InputStreamReader(
verisign.openStream()));
String inputLine;
while ((inputLine = in.readLine()) != null)
System.out.println(inputLine);
in.close();
} catch (Exception e) {
e.printStackTrace();
//PrintWriter pw = new PrintWriter(new FileWriter("/Program Files/ezc/exception.txt"));
PrintWriter pw = new PrintWriter(new FileWriter("E:/Documents and Settings/Angel/My Documents/EZConstruction/src2/exception.txt"));
e.printStackTrace(pw);
pw.flush();
pw.close();
}
}
}