Share embedded certificates between projects
Posted: Mon Feb 03, 2020 12:57 am
I am using Make. I have several projects that share a few certificates that I want to relocate to a folder say common_files. I tried a few times to do this but couldn't get it to work, although I managed to keep common files such as code and include to work.
Currently I have in component.mk in the same folder as the main code, this line:
COMPONENT_EMBED_TXTFILES += BaltimoreCyberTrustRoot.pem
This embeds the cert so I don't have to mess with saving it to spiffs or sd card. I wonder what to do to share it with other projects.
Desired:
./common_files/
BaltimoreCyberTrustRoot.pem
./iot_project/
main.c
How do we help Make do this? Thanks.
Currently I have in component.mk in the same folder as the main code, this line:
COMPONENT_EMBED_TXTFILES += BaltimoreCyberTrustRoot.pem
This embeds the cert so I don't have to mess with saving it to spiffs or sd card. I wonder what to do to share it with other projects.
Desired:
./common_files/
BaltimoreCyberTrustRoot.pem
./iot_project/
main.c
How do we help Make do this? Thanks.