update readme for ssl usage, added cwa-proxy.champonthis.de.pem

This commit is contained in:
Lurkars 2020-12-14 09:17:16 +01:00
parent 48d80cfd62
commit e08df72f26
4 changed files with 41 additions and 4 deletions

4
.gitignore vendored
View File

@ -43,4 +43,6 @@ dependencies.lock
sdkconfig sdkconfig
sdkconfig.old sdkconfig.old
.local .local
cert.pem

View File

@ -72,6 +72,41 @@ FetchContent_MakeAvailable(esp-ena)
set(EXTRA_COMPONENT_DIRS ${esp-ena_SOURCE_DIR}/components) set(EXTRA_COMPONENT_DIRS ${esp-ena_SOURCE_DIR}/components)
``` ```
### Configure the project
```
idf.py menuconfig
```
**required**
* enable bluetooth (BLE)
> Component config -> Bluetooth -> [*] Bluetooth
* add partition-table for storage (currently hardcoded name "ena")
> Partition Table -> Partition table -> (x) Custom partition table CSV
* mbedTLS enable HKDF
> Component config -> mbedTLS -> [*] HKDF algorithm (RFC 5869)
* flash size > 3.9GB
> Serial flasher config -> Flash size -> (x) 4MB
**recommended**
* BLE *Scan Duplicate* (By Device Address and Advertising Data)
> Component config -> Bluetooth -> Bluetooth controller -> Scan Duplicate Type -> (X) Scan Duplicate By Device Address And Advertising Data
**debug options**
* Log output set to Debug
> Component config -> Log output -> Default log verbosity -> (X) Debug
* Exposure Notification API / Storage enable *Dump storage*
> Exposure Notification API -> Storage -> [X] Dump storage
#### Configure SSL cert manually!
For *ena-eke-proxy* connection over SSL a valid certificate for used server under *components/ena-eke-proxy/certs/cert.pem* is required.
For my own proxy server, I have added a self signed cert for cwa-proxy.champonthis.de. For using, copy or rename *components/ena-eke-proxy/certs/cwa-proxy.champonthis.de.pem* to *components/ena-eke-proxy/certs/cert.pem*.
> copy valid cert to *components/ena-eke-proxy/certs/cert.pem*
## Structure ## Structure
The project is divided in different components. The main.c just wrap up all components. The Exposure Notification API is in **ena** module The project is divided in different components. The main.c just wrap up all components. The Exposure Notification API is in **ena** module

View File

@ -1,3 +0,0 @@
-----BEGIN CERTIFICATE-----
MIIEkjCCA3qgAwIBA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