How to integrate PFX / PEM file into APJ build for ArduCopter?

Hi everyone,
I’m working on embedding a certificate/key (PFX and/or PEM) into the firmware / APJ package of ArduCopter (ArduPilot). Specifically I’d like to:

  • embed a .pfx file (or at least the pubkey.pem) into the APJ so it is built-in at compile time;
  • know the best method (C array / object link / resource file / APJ manifest) for ArduPilot’s build system;
  • ensure the key is accessible at runtime (on the flight controller) for verification/signing;
  • any examples or pointers in ArduPilot codebase (linker symbols, KeyEmbed tool, packaging steps) would be highly appreciated.

I’m using [CubeORange].
Thanks in advance for any advice.