You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2) Push BKS bundles up to the device along with certificates. To do this start up the emulator/device and use "adb push". An example of this would be the following commands from root wolfssljni directory:
36
+
## Push BKS to Android Device or Emulator
37
+
38
+
Push BKS bundles up to the device along with certificates. To do this start
39
+
up the emulator/device and use `adb push`. An example of this would be the
40
+
following commands from root wolfssljni directory:
3) Add wolfssl source code for compiling. The project looks for the directory wolfssljni/IDE/Android/app/src/main/cpp/wolfssl for wolfSSL source code. This can be done multiple ways one being to download the latest release from wolfSSL's website, unzip it, rename it to wolfssl, and place it in the direcotry wolfssljni/IDE/Android/app/src/main/cpp/. Alternatively GitHub can be used with "cd /IDE/Android/app/src/main/cpp/ && git clone https://github.com/wolfssl/wolfssl". And the final method to be mentioned in this document is by creating a symbolic link to a wolfssl directory on the system by using "cd /IDE/Android/app/src/main/cpp/ && ln -s /path/to/local/wolfssl ./wolfssl".
53
+
## Add Native wolfSSL Library Source Code to Project
54
+
55
+
This example project is already set up to compile and build the native
56
+
wolfSSL library source files, but the wolfSSL files themselves have not been
57
+
included in this package. You must download or link an appropriate version
58
+
of wolfSSL to this project using one of the options below.
59
+
60
+
The project looks for the directory
61
+
`wolfssljni/IDE/Android/app/src/main/cpp/wolfssl` for wolfSSL source code.
62
+
This can added in multiple ways:
63
+
64
+
- OPTION A: Download the latest wolfSSL library release from www.wolfssl.com,
65
+
unzip it, rename it to `wolfssl`, and place it in the direcotry
- OPTION B: Alternatively GitHub can be used to clone wolfSSL:
74
+
75
+
```
76
+
$ cd /IDE/Android/app/src/main/cpp/
77
+
$ git clone https://github.com/wolfssl/wolfssl
78
+
$ cp wolfssl/options.h.in wolfssl/options.h
79
+
```
80
+
81
+
- OPTION C: A symbolic link to a wolfssl directory on the system by using:
82
+
83
+
```
84
+
$ cd /IDE/Android/app/src/main/cpp/
85
+
$ ln -s /path/to/local/wolfssl ./wolfssl
86
+
```
87
+
88
+
## Importing and Building the Example Project with Android Studio
89
+
90
+
4) Open the Android Studio project by double clicking on the `Android` folder
91
+
in wolfssljni/IDE/
92
+
93
+
5) Build the project and run MainActivity from app -> java/com/example.wolfssl.
94
+
This will ask for permissions to access the certificates in the /sdcard/
95
+
directory and then print out the server certificate information on success.
96
+
97
+
6) OPTIONAL: The androidTests can be run after permissions has been given.
98
+
app->java->com.wolfssl->provider.jsse.test->WolfSSLJSSETestSuite and
99
+
app->java->com.wolfssl->test->WolfSSLTestSuite
32
100
33
-
4) Open the Android studio project by double clicking on the Android folder in wolfssljni/IDE/
101
+
## Support
34
102
35
-
5) Compile the project and run MainActivity from app -> java -> com -> example.wolfssl. This will ask for permissions to access the certificates in the /sdcard/ directory and then print out the server certificate information on success.
103
+
Please contact wolfSSL support at support@wolfssl.com with any questions or
104
+
feedback.
36
105
37
-
6) OPTIONAL : The androidTests can then be ran after permissions has been given. app->java->com.wolfssl->provider.jsse.test->WolfSSLJSSETestSuite and app->java->com.wolfssl->test->WolfSSLTestSuite
0 commit comments