Public bug reported:

Compiling to following code (simple access to an https site using URL)
results in SSLException in openjdk-7, whereas it works perfectly with
openjdk-6.

(Please note that latest ubuntu's wget returns a core dumps on this same
site and openssl returns the same error. However, exact same
configuration with different java versions have different behaviours!).

import java.net.*;

public class CheckSSL3 {
  public static void main(String args[]) throws Exception {
    String urlString = 
"https://web-ast.dsi.cnrs.fr/l3c/owa/personnel.infos_admin?p_numero_sel=1120824";;
    URL url = new URL(urlString);
    url.openStream();
 }
}


root@plop:/root# update-java-alternatives -s java-1.6.0-openjdk-amd64
plip@plop:CheckSSL$ java -cp classes/ CheckSSL3
plip@plop:CheckSSL$ 

root@plop:/root# update-java-alternatives -s java-1.7.0-openjdk-amd64
plip@plop:CheckSSL$ java -cp classes/ CheckSSL3
plip@plop:CheckSSL$ java -cp classes/ CheckSSL3
Exception in thread "main" javax.net.ssl.SSLException: Received fatal alert: 
illegal_parameter
        at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
        at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
        at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1961)
        at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1077)
        at 
sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1312)
        at 
sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1339)
        at 
sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1323)
        at 
sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:515)
        at 
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
        at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299)
        at 
sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
        at java.net.URL.openStream(URL.java:1037)
        at CheckSSL3.main(CheckSSL3.java:7)
plip@plop:CheckSSL$

** Affects: openjdk-7 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1155626

Title:
  openjdk-7 SSL "illegal parameter"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/1155626/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to