Skip to content

Commit 4ac4faa

Browse files
committed
Use nina-fw root certs
That way we have one set we use for all of Adafruit's connected devices.
1 parent 5b3c930 commit 4ac4faa

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,3 +153,6 @@
153153
[submodule "ports/esp32s2/esp-idf"]
154154
path = ports/esp32s2/esp-idf
155155
url = https://github.com/jepler/esp-idf.git
156+
[submodule "ports/esp32s2/certificates/nina-fw"]
157+
path = ports/esp32s2/certificates/nina-fw
158+
url = https://github.com/adafruit/nina-fw.git

ports/esp32s2/certificates/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
We share root certificates with the nina-fw to ensure they both use the same roots.
2+
3+
https://github.com/adafruit/nina-fw

ports/esp32s2/certificates/nina-fw

Submodule nina-fw added at f2a0e60

ports/esp32s2/esp-idf-config/sdkconfig.defaults

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -575,10 +575,11 @@ CONFIG_MBEDTLS_DYNAMIC_FREE_CONFIG_DATA=y
575575
# Certificate Bundle
576576
#
577577
CONFIG_MBEDTLS_CERTIFICATE_BUNDLE=y
578-
CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_FULL=y
578+
# CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_FULL is not set
579579
# CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_CMN is not set
580-
# CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_NONE is not set
581-
# CONFIG_MBEDTLS_CUSTOM_CERTIFICATE_BUNDLE is not set
580+
CONFIG_MBEDTLS_CERTIFICATE_BUNDLE_DEFAULT_NONE=y
581+
CONFIG_MBEDTLS_CUSTOM_CERTIFICATE_BUNDLE=y
582+
CONFIG_MBEDTLS_CUSTOM_CERTIFICATE_BUNDLE_PATH="certificates/nina-fw/data/roots.pem"
582583
# end of Certificate Bundle
583584

584585
# CONFIG_MBEDTLS_ECP_RESTARTABLE is not set

0 commit comments

Comments
 (0)