Re: SSL communication problem Classpath 0.97.2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 13 January 2009 14:09, mohammad jouni <mohammad.jouni@xxxxxxxxx> wrote:
> 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
>
>

It would be helpful if you could provide a simple reproducer e.g.
applying the attached certificate X and running attached program Y
cause the failure.
>From what you've written here, it's unclear how anyone would be able
to reproduce this reliably, let alone fix it.
-- 
Andrew :-)

Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)

Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net

PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint: F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8




[Index of Archives]     [Linux Kernel]     [Linux Cryptography]     [Fedora]     [Fedora Directory]     [Red Hat Development]

  Powered by Linux