Android NoSuchAlgorithmException: "SSLContext SSL implementation not found"

SSLContext context = SSLContext.getInstance("SSL"); 

The above line throws an exception:

 java.security.NoSuchAlgorithmException: SSLContext SSL implementation not found 

I use the Android 2.0 SDK and when specifying "TLS" it is accepted.

Why am I getting an exception? Does Android support SSL?

+6
android ssl
source share
2 answers

If you use the standard Harmony JSSE, "TLS" is the only protocol that it supports that matches SSLv3.

You need to find another JSSE if you need to use an older version of SSL.

+4
source share

News from IO 2014. Now it can be installed:

 SSLContext get sSLContext(Context ){ ProviderInstaller.instalelIfNeeded(context); return SSLContext.getInstance("SSL"); } 

For more information, see this blog and google security services .

0
source share

All Articles