Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error due to missing x509_crt_bundle #635

Closed
gohm44 opened this issue Sep 30, 2021 · 3 comments
Closed

Compilation error due to missing x509_crt_bundle #635

gohm44 opened this issue Sep 30, 2021 · 3 comments

Comments

@gohm44
Copy link

gohm44 commented Sep 30, 2021

Step to reproduce:

Create new project and compile it.

  1. mkdir /tmp/platformio_project
  2. virtualenv venv
  3. venv/bin/pip install platformio
  4. venv/bin/pio project init --board esp-wrover-kit --project-option "framework=espidf" --ide vim
  5. venv/bin/pio run

Observed behaviour:

  1. At the beginning there is error which does not brake compilation yet:
Reading CMake configuration...
Generating assembly for certificate bundle...
CMake Error at /home/gohm/.platformio/packages/framework-espidf/tools/cmake/scripts/data_file_embed_asm.cmake:26 (file):
  file failed to open for reading (No such file or directory):

    /tmp/platformio_project/.pio/build/esp-wrover-kit/x509_crt_bundle


*** Error 1
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf

But finally compilation failed due to missing .pio/build/esp-wrover-kit/x509_crt_bundle.S

Compiling .pio/build/esp-wrover-kit/lwip/port/esp32/netif/ethernetif.o
Compiling .pio/build/esp-wrover-kit/lwip/port/esp32/vfs_lwip.o
Compiling .pio/build/esp-wrover-kit/mbedtls/esp_crt_bundle/esp_crt_bundle.o
*** [.pio/build/esp-wrover-kit/.pio/build/esp-wrover-kit/x509_crt_bundle.o] Source `.pio/build/esp-wrover-kit/x509_crt_bundle.S' not found, needed by target `.pio/build/esp-wrover-kit/.pio/build/esp-wrover-kit/x509_crt_bundle.o'.
====================== [FAILED] Took 20.48 seconds ======================
@bartezz32
Copy link

Temporary fix for this problem issue-1012039784

@manuelbl
Copy link

Could it be the DST Root CA X3 certificate?

        Issuer: O=Digital Signature Trust Co., CN=DST Root CA X3
        Validity
            Not Before: Sep 30 21:12:19 2000 GMT
            Not After : Sep 30 14:01:15 2021 GMT
        Subject: O=Digital Signature Trust Co., CN=DST Root CA X3

It just expired today....

@Jason2866
Copy link
Contributor

The issue is the negative serial number of one of the entries which the actual cryptography lib do not accept. Change in requirements.txt to cryptography>=2.1.4,<35.0.0 or do a downgrade in your used python env

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants