arduino-libraries / ArduinoECCX08

76 stars 49 forks source link

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

Closed scarolan closed 7 months ago

scarolan commented 2 years ago

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.

scarolan commented 2 years ago

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 commented 12 months ago

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

Can you share your sketch and your ATECC608 configuration?

scarolan commented 11 months ago

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