[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug crypto/40774] Does SSL works at all in classpath version 0.98
From: |
martin.winter at siemens dot com |
Subject: |
[Bug crypto/40774] Does SSL works at all in classpath version 0.98 |
Date: |
Thu, 20 Jan 2011 13:19:21 +0000 |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40774
Martin Winter <martin.winter at siemens dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |martin.winter at siemens
| |dot com
--- Comment #1 from Martin Winter <martin.winter at siemens dot com> 2011-01-20
13:19:08 UTC ---
I see the very same behaviour with Jamvm 1.5.4, classpath 0.98 and the
simpleframework web server on an embedded Linux (ARM) platform, so I can affirm
that there is a bug and that can be reproduced.
Here is my code snippet to create the SSL server:
try {
SSLContext ssl = SSLContext.getInstance("SSLv3");
KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType());
InputStream keystream = ClassLoader.getSystemResourceAsStream(keystore);
if (keystream == null) {
throw new FileNotFoundException("Keystore not found: " + keystore);
}
ks.load(keystream, "password".toCharArray());
KeyManagerFactory kmf = KeyManagerFactory
.getInstance(KeyManagerFactory.getDefaultAlgorithm());
kmf.init(ks, "passwd".toCharArray());
ssl.init(kmf.getKeyManagers(), null, null);
SocketAddress address = new InetSocketAddress("localhost", 443);
Connection connection = new SocketConnection(container);
connection.connect(address, ssl);
} catch (Exception e) {
log.warn("Cannot create SSL server", e);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug crypto/40774] Does SSL works at all in classpath version 0.98,
martin.winter at siemens dot com <=