Skip to content
This repository has been archived by the owner on Apr 4, 2021. It is now read-only.

Truststore

Florian Schmaus edited this page Mar 15, 2014 · 7 revisions

Code Snippet

try { SSLContext sc = SSLContext.getInstance("TLS"); sc.init(null, MemorizingTrustManager.getInstanceList(context), new SecureRandom()); mConnectionConfiguration.setCustomSSLContext(sc); } catch (NoSuchAlgorithmException e) { throw new IllegalStateException(e); } catch (KeyManagementException e) { throw new IllegalStateException(e); }

MemorizingTrustManager

Georg's memorizing trust manager can be found @ https://github.com/ge0rg/MemorizingTrustManager

Further Readings

Clone this wiki locally