Skip to content

Self-signed cert generation errors out on some slots #41

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

Closed
scarolan opened this issue Jul 26, 2022 · 4 comments
Closed

Self-signed cert generation errors out on some slots #41

scarolan opened this issue Jul 26, 2022 · 4 comments
Labels
status: waiting for information More information must be provided before work can proceed type: imperfection Perceived defect in any part of project

Comments

@scarolan
Copy link

scarolan commented Jul 26, 2022

I'm using this on an ESP32 device (M5Stack Core2 for AWS). The error message isn't very specific. Here's what I get trying to use slot 0 and storage slot 8:

Please enter the issue year of the certificate? (2000 - 2031) [2022]:
Please enter the issue month of the certificate? (1 - 12) [1]:
Please enter the issue day of the certificate? (1 - 31) [1]:
Please enter the issue hour of the certificate? (0 - 23) [0]:
Please enter how many years the certificate is valid for? (1 - 31) [1]:
What slot would you like to use for the private key? (0 - 4) [2]: 0
What slot would you like to use for storage? (8 - 15) [8]: 8
Would you like to generate a new private key? (Y/n) [Y]: Y

Error starting self signed cert generation!

I was able to eventually get it working with Slot 2, Slot 8 but the "generate new private key" option never worked for me. I also found that some slot combinations outputs the SHA but not the public cert.

It's been a tough one to troubleshoot because I can only seem to get a working cert about one out of every ten tries.

@per1234 per1234 added the type: imperfection Perceived defect in any part of project label Jul 26, 2022
@scarolan
Copy link
Author

Here's an example where it sort of works but never outputs the cert

Would you like to generate a new private key? (Y/n) [Y]: n

Self-signed certificate is below:



SHA1: da39a3ee5e6b4b0d3255bfef95601890afd80709

@pennam
Copy link
Contributor

pennam commented Sep 18, 2023

@scarolan it looks like you are not using this example to generate the CSR.

Can you share your sketch and your ATECC608 configuration?

@scarolan
Copy link
Author

Sorry, I've long since abandoned this project. I think we can close this issue if nobody else cares or is affected.

@per1234 per1234 added the status: waiting for information More information must be provided before work can proceed label Jan 28, 2024
@VinayBharambe
Copy link

Same issue of "Error starting self signed cert generation!".

I am using Arduino Due and used 0 and 9 slots.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting for information More information must be provided before work can proceed type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

4 participants