Kconfig 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. menu "ESP-TLS"
  2. choice ESP_TLS_LIBRARY_CHOOSE
  3. prompt "Choose SSL/TLS library for ESP-TLS (See help for more Info)"
  4. default ESP_TLS_USING_MBEDTLS
  5. help
  6. The ESP-TLS APIs support multiple backend TLS libraries. Currently mbedTLS and WolfSSL are
  7. supported. Different TLS libraries may support different features and have different resource
  8. usage. Consult the ESP-TLS documentation in ESP-IDF Programming guide for more details.
  9. config ESP_TLS_USING_MBEDTLS
  10. bool "mbedTLS"
  11. config ESP_TLS_USING_WOLFSSL
  12. depends on TLS_STACK_WOLFSSL
  13. bool "wolfSSL (License info in wolfSSL directory README)"
  14. endchoice
  15. config ESP_TLS_USE_SECURE_ELEMENT
  16. bool "Use Secure Element (ATECC608A) with ESP-TLS"
  17. depends on IDF_TARGET_ESP32 && ESP_TLS_USING_MBEDTLS
  18. select ATCA_MBEDTLS_ECDSA
  19. select ATCA_MBEDTLS_ECDSA_SIGN
  20. select ATCA_MBEDTLS_ECDSA_VERIFY
  21. default n
  22. help
  23. Enable use of Secure Element for ESP-TLS, this enables internal support for
  24. ATECC608A peripheral on ESPWROOM32SE, which can be used for TLS connection.
  25. config ESP_TLS_USE_DS_PERIPHERAL
  26. bool "Use Digital Signature (DS) Peripheral with ESP-TLS"
  27. depends on (IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32S2) && ESP_TLS_USING_MBEDTLS
  28. default y
  29. help
  30. Enable use of the Digital Signature Peripheral for ESP-TLS.The DS peripheral
  31. can only be used when it is appropriately configured for TLS.
  32. Consult the ESP-TLS documentation in ESP-IDF Programming Guide for more details.
  33. config ESP_TLS_SERVER
  34. bool "Enable ESP-TLS Server"
  35. default n
  36. help
  37. Enable support for creating server side SSL/TLS session, available for mbedTLS
  38. as well as wolfSSL TLS library.
  39. config ESP_TLS_PSK_VERIFICATION
  40. bool "Enable PSK verification"
  41. select MBEDTLS_PSK_MODES if ESP_TLS_USING_MBEDTLS
  42. select MBEDTLS_KEY_EXCHANGE_PSK if ESP_TLS_USING_MBEDTLS
  43. select MBEDTLS_KEY_EXCHANGE_DHE_PSK if ESP_TLS_USING_MBEDTLS
  44. select MBEDTLS_KEY_EXCHANGE_ECDHE_PSK if ESP_TLS_USING_MBEDTLS
  45. select MBEDTLS_KEY_EXCHANGE_RSA_PSK if ESP_TLS_USING_MBEDTLS
  46. default n
  47. help
  48. Enable support for pre shared key ciphers, supported for both mbedTLS as well as
  49. wolfSSL TLS library.
  50. config ESP_TLS_INSECURE
  51. bool "Allow potentially insecure options"
  52. help
  53. You can enable some potentially insecure options. These options should only be used for testing pusposes.
  54. Only enable these options if you are very sure.
  55. config ESP_TLS_SKIP_SERVER_CERT_VERIFY
  56. bool "Skip server certificate verification by default (WARNING: ONLY FOR TESTING PURPOSE, READ HELP)"
  57. depends on ESP_TLS_INSECURE
  58. help
  59. After enabling this option the esp-tls client will skip the server certificate verification
  60. by default. Note that this option will only modify the default behaviour of esp-tls client
  61. regarding server cert verification. The default behaviour should only be applicable when
  62. no other option regarding the server cert verification is opted in the esp-tls config
  63. (e.g. crt_bundle_attach, use_global_ca_store etc.).
  64. WARNING : Enabling this option comes with a potential risk of establishing a TLS connection
  65. with a server which has a fake identity, provided that the server certificate
  66. is not provided either through API or other mechanism like ca_store etc.
  67. config ESP_WOLFSSL_SMALL_CERT_VERIFY
  68. bool "Enable SMALL_CERT_VERIFY"
  69. depends on ESP_TLS_USING_WOLFSSL
  70. default y
  71. help
  72. Enables server verification with Intermediate CA cert, does not authenticate full chain
  73. of trust upto the root CA cert (After Enabling this option client only needs to have Intermediate
  74. CA certificate of the server to authenticate server, root CA cert is not necessary).
  75. config ESP_DEBUG_WOLFSSL
  76. bool "Enable debug logs for wolfSSL"
  77. depends on ESP_TLS_USING_WOLFSSL
  78. default n
  79. help
  80. Enable detailed debug prints for wolfSSL SSL library.
  81. endmenu