This folder contains a ready-to-use project for testing Secure Socket Layer implementations on a device. This Test Suite will typically test secure sockets using SSL/TLS protocol.
- Tested Foundation Library: SSL
- Test Suite Module: com.microej.pack.net#net-ssl-2_2-testsuite
Update the SSL Test Suite module version in the module.ivy to match the requirement of the platform tested.
Please refer to Platform Qualification Test Suite Versioning to determine the SSL Test Suite module version.
- See Platform Test Suites documentation.
- In MicroEJ SDK, import the
java-testsuite-runner-ssl
project in your workspace. - Follow the configuration and execution steps described in Platform Test Suites documentation.
The NET Test Suite requires specific properties depending on the implementation and test environment. All the properties described in this section are defined in the file microej-testsuite-common.properties and prefixed by microej.java.property.
.
- WiFi SSID and passphrase are set with respectively with the properties
wifi.ssid
andwifi.passphrase
. - Application options specific to SSL:
remote.machine.ip
: Set this property with the value of the IP address of the machine that runs the tests.remoteapp.timeout
: Amount of time (in milliseconds) that the remote test will wait before interrupting its execution.microej.ssl.testsuite.ssl.stack
: Property to set tombedtls
when running tests on platforms with a mbedTLS backend.
See Platform Test Suites documentation.
Source code of Test Suite server application is available online:
- Download the desired Test Suite Module: For example com.microej.pack.net#net-ssl-2_2-testsuite (refer to Platform Qualification Test Suite Versioning to determine the Test Suite module version).
- Unzip the Test Suite
RIP
(it is a zip file): For examplenet-ssl-2_2-testsuite-[version].rip
. - Open the Java archive
JAR
(it is a zip file): For example/content/resources/ssl-tests/net-ssl-2_2-testsuite-remote.jar/
. - Open the desired test: For example
/com/microej/ssl/test/remote/TestClientAuthentication_1.java
.
See Platform Test Suites documentation.