Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 5 months ago.
How to enable SHA1 to run mbed-os-example-tls-tls-client example using mbed Online Compiler
Hi, how can I enable SHA1 option of mbedTLS MBEDTLS_SHA1_C
to run the mbed-os-example-tls-tls-client example with the mbed Online Compiler?
Is there the possiblity to define preprocessor macros like in gcc -DMBEDTLS_SHA1_C
or can the changes be made with an "overriding" file?
UART output:
Using Ethernet LWIP
Client IP Address is 192.168.1.153
mbedtls_x509_crt_parse() failed: -0x262e (-9774): X509 - Signature algorithm (oid) is unsupported : OID - OID is not found
1 Answer
6 years, 3 months ago.
You can add MBEDTLS_USER_CONFIG_FILE macro: https://github.com/ARMmbed/mbed-os-example-tls/blob/master/tls-client/mbed_app.json#L4
and create proper settings like this: https://github.com/ARMmbed/mbed-os-example-tls/blob/master/tls-client/mbedtls_entropy_config.h