Search code examples
javabouncycastlessl

How to import a keystore using BouncyCastle's TLS Api


I have a question about using BouncyCastle's lightweight TLS API (Java version). On the BouncyCastle website, I noticed that it says with the latest release (1.46), the TLS api supports client-authentication.

However, I don't know how to import existing certificates for the TlsClient to use. How does one import a certificate or a keystore to use with BC's TLS api?


Solution

  • I answered a similar question on the BC mailing list recently.