lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #54827] altcp_mbedtls_bio_recv returns MBEDTLS_ERR_SSL


From: Richmond Umagat
Subject: [lwip-devel] [bug #54827] altcp_mbedtls_bio_recv returns MBEDTLS_ERR_SSL_WANT_READ when connecting to Azure IoT
Date: Mon, 15 Oct 2018 00:29:44 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36

Follow-up Comment #2, bug #54827 (project lwip):

I looked into debugging mbedTLS and found that the issue is caused by
MBEDTLS_SSL_MAX_CONTENT_LEN and MBEDTLS_MPI_MAX_SIZE.

mbedtls_ssk_parse_certificate
mbedtls_x509_crt_parse_der
x509_crt_parse_der_core 
mbedtls_pk_parse_subpubkey
pk_get_rsapubkey
mbedtls_rsa_complete
rsa_check_context
MBEDTLS_ERR_RSA_BAD_INPUT_DATA

To connect to Azure IoT Hub, the following mbedTLS settings must be set to a
minimum of:
MBEDTLS_MPI_MAX_SIZE 512
MBEDTLS_SSL_MAX_CONTENT_LEN 3584

Note that for Amazon IoT/Greengrass and Google IoT, the following is
sufficient
MBEDTLS_MPI_MAX_SIZE 256
MBEDTLS_SSL_MAX_CONTENT_LEN 3072

Please close the bug as this is not an LWIP issue. Thank you.

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?54827>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]