Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

How to store OTA certificate without using adding it manually in "aws_ota_codesigner_certificate.h" file #2968

Closed
MrMelon1232 opened this issue Feb 4, 2021 · 3 comments

Comments

@MrMelon1232
Copy link

I am currently using NVS to store the OTA certificate. I would like to retrieve it via NVS by using a function. Is there any way to override the variable static const char signingcredentialSIGNING_CERTIFICATE_PEM[] and assign it to the return value of the function or parse an argument when initializing OTA to have custom certificates ?

Any other approach and suggestions are appreciated as well.

@yourslab
Copy link
Contributor

yourslab commented Feb 5, 2021

Have you considered provisioning the OTA certificate through PKCS#11? There is a pkcs11configOTA_SUPPORTED macro in core_pkcs11_config.h that you can use for this.

@leegeth
Copy link
Contributor

leegeth commented Feb 20, 2021

@MrMelon1232,

Could you try the provisioning that @yourslab mentioned? Are you looking for any further help from us?

@MrMelon1232
Copy link
Author

MrMelon1232 commented Feb 23, 2021

Hi @leegeth @yourslab, I have found a workaround for this issue and will therefore close it.
Thank you for the suggestions!

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

No branches or pull requests

3 participants