wolfssljni/examples
Chris Conlon 83e228013a add script to update example certs, update CRLs from current wolfSSL 2022-11-29 10:30:41 -07:00
..
certs add script to update example certs, update CRLs from current wolfSSL 2022-11-29 10:30:41 -07:00
provider update convert-to-bks.sh script for use on Android 2022-04-22 16:10:22 -06:00
Client.java update copyright dates to 2022 2022-01-18 10:19:03 -07:00
MyAtomicDecCtx.java update copyright dates to 2022 2022-01-18 10:19:03 -07:00
MyAtomicEncCtx.java update copyright dates to 2022 2022-01-18 10:19:03 -07:00
MyDecryptVerifyCallback.java update copyright dates to 2022 2022-01-18 10:19:03 -07:00
MyEccSharedSecretCallback.java update copyright dates to 2022 2022-01-18 10:19:03 -07:00
MyEccSharedSecretCtx.java update copyright dates to 2022 2022-01-18 10:19:03 -07:00
MyEccSignCallback.java update copyright dates to 2022 2022-01-18 10:19:03 -07:00
MyEccSignCtx.java update copyright dates to 2022 2022-01-18 10:19:03 -07:00
MyEccVerifyCallback.java update copyright dates to 2022 2022-01-18 10:19:03 -07:00
MyEccVerifyCtx.java update copyright dates to 2022 2022-01-18 10:19:03 -07:00
MyGenCookieCallback.java update copyright dates to 2022 2022-01-18 10:19:03 -07:00
MyGenCookieCtx.java update copyright dates to 2022 2022-01-18 10:19:03 -07:00
MyIOCtx.java update copyright dates to 2022 2022-01-18 10:19:03 -07:00
MyLoggingCallback.java update copyright dates to 2022 2022-01-18 10:19:03 -07:00
MyMacEncryptCallback.java update copyright dates to 2022 2022-01-18 10:19:03 -07:00
MyMissingCRLCallback.java update copyright dates to 2022 2022-01-18 10:19:03 -07:00
MyPskClientCallback.java update copyright dates to 2022 2022-01-18 10:19:03 -07:00
MyPskServerCallback.java update copyright dates to 2022 2022-01-18 10:19:03 -07:00
MyRecvCallback.java update copyright dates to 2022 2022-01-18 10:19:03 -07:00
MyRsaDecCallback.java update copyright dates to 2022 2022-01-18 10:19:03 -07:00
MyRsaDecCtx.java update copyright dates to 2022 2022-01-18 10:19:03 -07:00
MyRsaEncCallback.java update copyright dates to 2022 2022-01-18 10:19:03 -07:00
MyRsaEncCtx.java update copyright dates to 2022 2022-01-18 10:19:03 -07:00
MyRsaSignCallback.java update copyright dates to 2022 2022-01-18 10:19:03 -07:00
MyRsaSignCtx.java update copyright dates to 2022 2022-01-18 10:19:03 -07:00
MyRsaVerifyCallback.java update copyright dates to 2022 2022-01-18 10:19:03 -07:00
MyRsaVerifyCtx.java update copyright dates to 2022 2022-01-18 10:19:03 -07:00
MySendCallback.java update copyright dates to 2022 2022-01-18 10:19:03 -07:00
README.md update README.md, add examples/README.md and examples/provider/README.md 2021-11-05 14:37:42 -06:00
Server.java update copyright dates to 2022 2022-01-18 10:19:03 -07:00
VerifyCallback.java update copyright dates to 2022 2022-01-18 10:19:03 -07:00
client.sh initial repo creation 2013-11-08 12:38:38 -07:00
server.sh initial repo creation 2013-11-08 12:38:38 -07:00

README.md

wolfSSL JNI Examples

This directory contains examples for the wolfSSL thin JNI wrapper. To view examples for the wolfSSL JSSE provider, look in the ./examples/provider directory.

Examples should be run from the package root directory, and using the provided wrapper scripts. The wrapper scripts set up the correct environment variables for use with the wolfjni jar included in the wolfssljni package.

Notes on Debug and Logging

wolfJSSE debug logging can be enabled by using -Dwolfjsse.debug=true at runtime.

wolfSSL native debug logging can be enabled by using -Dwolfssl.debug=true at runtime, if native wolfSSL has been compiled with --enable-debug.

JDK debug logging can be enabled using the -Djavax.net.debug=all option.

wolfSSL JNI Example Client and Server

Example client/server applications that use wolfSSL JNI:

Server.java - Example wolfSSL JNI server
Client.java - Example wolfSSL JNI client

These examples can be run with the provided bash scripts:

$ cd <wolfssljni_root>
$ ./examples/server.sh <options>
$ ./examples/client.sh <options>

To view usage and available options for the examples, use the -? argument:

$ ./examples/server.sh --help

Support

Please contact the wolfSSL support team at support@wolfssl.com with any questions or feedback.