Add extracted tools: CitrineOS, OpenOCPP, ShapeShifter
- CitrineOS core extracted (CSMS OCPP 2.0.1) - OpenOCPP extracted (firmware OCPP 1.6J/2.0.1) - ShapeShifter library installed (pip install -e) - ShapeShifter specification extracted - EVerest extracted TODO updated with progress
This commit is contained in:
42
tools/EVerest-main/lib/everest/tls/tests/README.md
Normal file
42
tools/EVerest-main/lib/everest/tls/tests/README.md
Normal file
@@ -0,0 +1,42 @@
|
||||
# Tests
|
||||
|
||||
Building tests:
|
||||
|
||||
```sh
|
||||
$ cd EVerest
|
||||
$ mkdir build
|
||||
$ cd build
|
||||
$ cmake -GNinja -DEVEREST_CORE_BUILD_TESTING=ON ..
|
||||
$ ninja install
|
||||
```
|
||||
|
||||
`touch release.json` may be needed if it hasn't been created
|
||||
(then re-run `ninja install`).
|
||||
|
||||
## Unit tests
|
||||
|
||||
- `./tls_test` and `./patched_test`
|
||||
- automatically runs `pki.sh`
|
||||
- run from the directory containing the executable
|
||||
|
||||
## Standalone server
|
||||
|
||||
- Run `pki.sh` to build the test certificates and keys
|
||||
- use openssl_s_client to make test connections
|
||||
- run from the directory containing the executable
|
||||
|
||||
### Standalone TLS server
|
||||
|
||||
Tests the Server class in isolation.
|
||||
|
||||
- `./tls_server`
|
||||
- connects to IPv4 and IPv6
|
||||
- only one connection at a time
|
||||
- gracefully terminates after 30 seconds
|
||||
- `valgrind` can be used to check memory allocations (should be none)
|
||||
- requires client certificate and supports `status_request` extension
|
||||
- s_client echos back what is typed
|
||||
|
||||
```sh
|
||||
openssl s_client -connect localhost:8444 -verify 2 -CAfile server_root_cert.pem -cert client_cert.pem -cert_chain client_chain.pem -key client_priv.pem -verify_return_error -verify_hostname evse.pionix.de -status
|
||||
```
|
||||
Reference in New Issue
Block a user