Closed dhwalters423 closed 12 months ago
The hard fault is caused because I did not import the root certificate. After running the following to import AmazonRootCA3.pem:
pki import cert root_ca_cert
-----BEGIN CERTIFICATE-----
MIIBtjCCAVugAwIBAgITBmyf1XSXNmY/Owua2eiedgPySjAKBggqhkjOPQQDAjA5
MQswCQYDVQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6b24g
Um9vdCBDQSAzMB4XDTE1MDUyNjAwMDAwMFoXDTQwMDUyNjAwMDAwMFowOTELMAkG
A1UEBhMCVVMxDzANBgNVBAoTBkFtYXpvbjEZMBcGA1UEAxMQQW1hem9uIFJvb3Qg
Q0EgMzBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABCmXp8ZBf8ANm+gBG1bG8lKl
ui2yEujSLtf6ycXYqm0fc4E7O5hrOXwzpcVOho6AF2hiRVd9RFgdszflZwjrZt6j
QjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgGGMB0GA1UdDgQWBBSr
ttvXBp43rDCGB5Fwx5zEGbF4wDAKBggqhkjOPQQDAgNJADBGAiEA4IWSoxe3jfkr
BqWTrBqYaGFy+uGh0PsceGCmQ5nFuMQCIQCcAu/xlJyzlvnrxir4tiz+OpAUFteM
YyRIHN8wfdVoOw==
-----END CERTIFICATE-----
The example ran successfully. These instructions should be added to the getting started guide. I also am not sure if HardFault is the expected behavior if the server CA cert is missing.
edit: AmazonRootCA3.pem failed to verify, probably because it was the wrong cipher suite, but importing AmazonRootCA1.pem works as expected
@dhwalters423
Thank you for reporting this along with your solution. I suspect a hard fault wasn't the intended behavior here. @paulbartell Can you take a look?
@dhwalters423 Thanks for the report. I am looking into the issue.
@paulbartell Has there been any update on this issue?
Describe the bug Using v202212.00 TFM example After setting the configuration, and generating key and cert onboard and resetting device, receive HardFault (directly after this step: https://github.com/FreeRTOS/iot-reference-stm32u5/blob/main/Getting_Started_Guide.md#reset-the-target-device)
Device ends up in unrecoverable boot loop.
Host
To Reproduce
Expected behavior Connect to AWS IoT Core
Device Logs