SSL communication problem Classpath 0.97.2

"mohammad jouni" <[email protected]>
Newsgroups gmane.comp.java.classpath.devel
Message-ID <[email protected]>
Hello Everyone ,

I am attempting to run an application that uses SSL communication
using JamVM and GNU Classpath 0.97.2 .

Every time I attempt to run the application I am presented with the
following error :

java.io.IOException
   at javax.net.ssl.SSLSocketFactory$ErrorSocketFactory.createSocket(SSLSocketFactory.java:178)
   at EchoClient.main(EchoClient.java:18)
Caused by: java.lang.RuntimeException: error instantiating default
socket factory: java.security.KeyManagementException:
java.security.KeyStoreException:
gnu.javax.crypto.keyring.MalformedKeyringException: MAC verification
failed
   at javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:147)
   at EchoClient.main(EchoClient.java:17)
Caused by: java.security.KeyManagementException:
java.security.KeyStoreException:
gnu.javax.crypto.keyring.MalformedKeyringException: MAC verification
failed
   at gnu.javax.net.ssl.provider.SSLContextImpl.defaultTrustManager(SSLContextImpl.java:283)
   at gnu.javax.net.ssl.provider.SSLContextImpl.engineInit(SSLContextImpl.java:202)
   at javax.net.ssl.SSLContext.init(SSLContext.java:291)
   at javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:141)
   ...1 more
Caused by: java.security.KeyStoreException:
gnu.javax.crypto.keyring.MalformedKeyringException: MAC verification
failed
   at gnu.javax.net.ssl.provider.X509TrustManagerFactory.engineInit(X509TrustManagerFactory.java:173)
   at javax.net.ssl.TrustManagerFactory.init(TrustManagerFactory.java:285)
   at gnu.javax.net.ssl.provider.SSLContextImpl.defaultTrustManager(SSLContextImpl.java:270)
   ...4 more
Caused by: gnu.javax.crypto.keyring.MalformedKeyringException: MAC
verification failed
   at gnu.javax.crypto.keyring.PasswordAuthenticatedEntry.decode(PasswordAuthenticatedEntry.java:108)
   at gnu.javax.crypto.keyring.GnuPrivateKeyring.load(GnuPrivateKeyring.java:354)
   at gnu.javax.crypto.keyring.BaseKeyring.load(BaseKeyring.java:77)
   at gnu.javax.crypto.jce.keyring.GnuKeyring.loadPrivateKeyring(GnuKeyring.java:429)
   at gnu.javax.crypto.jce.keyring.GnuKeyring.engineLoad(GnuKeyring.java:350)
   at java.security.KeyStore.load(KeyStore.java:500)
   at gnu.javax.net.ssl.provider.X509TrustManagerFactory.engineInit(X509TrustManagerFactory.java:169)
   ...6 more

I attempted to add the certificate using each of these commands , but
on both instances i encountered the same error

sh /usr/lib/classpath/gkeytool -import -alias dm -keystore
/usr/lib/security/cacerts -file /root/Cert.crt

sh /usr/lib/classpath/gkeytool -import -keystore
/usr/lib/security/cacerts -trustcacerts -file /root/Cert.crt

Thank you
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.