Add an example for how to enable TLS verification. (#381)

* Add an example for how to enable TLS verification.

TLS should really be used with verification enabled, as otherwise you
can still suffer from a "man in the middle" attack. Add an example that
demonstrates how to do this.

Fixes #337
This commit is contained in:
Peter Harper
2023-06-06 16:45:01 +01:00
committed by GitHub
parent 5f282200d3
commit 0da9d4576b
6 changed files with 369 additions and 208 deletions

View File

@@ -61,3 +61,6 @@
#define MBEDTLS_ECDSA_C
#define MBEDTLS_ASN1_WRITE_C
// The following is needed to parse a certificate
#define MBEDTLS_PEM_PARSE_C
#define MBEDTLS_BASE64_C