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

Invalid Certificate (IEP-534) #366

Closed
PabloMMS opened this issue Oct 1, 2021 · 6 comments
Closed

Invalid Certificate (IEP-534) #366

PabloMMS opened this issue Oct 1, 2021 · 6 comments

Comments

@PabloMMS
Copy link

PabloMMS commented Oct 1, 2021

[1/313] Performing build step for 'bootloader'
ninja: no work to do.
[2/311] Generating x509_crt_bundle
FAILED: esp-idf/mbedtls/x509_crt_bundle
cmd.exe /C "cd /D C:\Users\pablo\Eclipse\eclipse-workspace\Lab_SyM_Blink\build\esp-idf\mbedtls && python C:/msys2/home/pablo/esp/esp-idf/components/mbedtls/esp_crt_bundle/gen_crt_bundle.py --input C:/msys2/home/pablo/esp/esp-idf/components/mbedtls/esp_crt_bundle/cacrt_all.pem -q"
gen_crt_bundle.py: Invalid certificate in C:/msys2/home/pablo/esp/esp-idf/components/mbedtls/esp_crt_bundle/cacrt_all.pem
Invalid certificate
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
Executing action: flash
Running ninja in directory c:\users\pablo\eclipse\eclipse-workspace\lab_sym_blink\build
Executing "ninja flash"...

Anybody knows how to solve this, thanks btw

@github-actions github-actions bot changed the title Invalid Certificate Invalid Certificate (IEP-534) Oct 1, 2021
@kolipakakondal
Copy link
Collaborator

Hi @PabloMMS

This could help you espressif/esp-idf#7621

@kolipakakondal
Copy link
Collaborator

  1. Go to project
  2. Open sdkconfig editor
  3. Navigate to Component Config > mbedLTS > Certificate Bundle > Uncheck Enable trusted root certificate bundle option
  4. Rebuild the project

Please find the screenshot to disable the root certificate bundle.

Screenshot 2021-10-01 at 10 52 41 AM

@PabloMMS
Copy link
Author

PabloMMS commented Oct 1, 2021

Thanks, really helped me out
Didn't expect to use the sdk conf to solve it

@itwax
Copy link

itwax commented Oct 6, 2021

Thanks. But what are we losing by disabling Trusted Root Certificate ?
It is there for some security reason.
Espressif should also provide an alternative.

@ToBoMi
Copy link

ToBoMi commented Oct 6, 2021

Thanks. But what are we losing by disabling Trusted Root Certificate ? It is there for some security reason. Espressif should also provide an alternative.

I also ask myself if this is really a solution to the problem or more a workaround.

@kolipakakondal
Copy link
Collaborator

Hello @TobiasBoeschMiele @itwax

Please refer to the notes from @igrr on this here

Thanks

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