Skip to content Skip to sidebar Skip to footer

Java.security.nosuchalgorithmexception: Trustmanagerfactory Sunx509 Implementation Not Found

i just updated to restlet rc6 from previously rc5. The android app does a simple https call to an externel url. In rc5 everything worked find, in rc6 i now get the following error:

Solution 1:

The silly bunnies included the following in the DefaultSslContextFactory.createSslContext(..) method for rc6 apparently:

setKeyManagerAlgorithm(helperParameters.getFirstValue(
            "keyManagerAlgorithm", true, System.getProperty(
                    "ssl.KeyManagerFactory.algorithm", "SunX509")));

I.e. they hardcoded SunX509 which is proprietary to the Sun JDK - a pretty bad idea overall. This was fixed in the commit 025d356d9fc3620ba9ed613fed32f1a5668f4f70, 17 days ago.

If you need it to work now you could try downloading and building the libraries yourself of course.

Post a Comment for "Java.security.nosuchalgorithmexception: Trustmanagerfactory Sunx509 Implementation Not Found"