Search code examples
androidsslbouncycastlespongycastle

Setting up an SSLContext using Spongy Castle


How can I set up an SSLContext with TLS using Spongy Castle? I'm searching online but cannot find any good examples.


Solution

  • This cannot really be done, since Bouncy Castle and by extension Spongy Castle doesn't come with a JSSE provider. Use the platform default versions (don't specify a provider). When you need a specific algorithm that is not included in the system JCE providers, specify the SC provider explicitly.