golioth / golioth-zephyr-sdk

Golioth SDK For Zephyr
https://www.golioth.io
Apache License 2.0
66 stars 19 forks source link

samples: hello: add helper script for generating keys/certs #321

Closed mniestroj closed 1 year ago

mniestroj commented 1 year ago

Add script that calls openssl commands in order to generate self-signed root CA, device key and cert.

Device key and cert are converted to DER format and copied to keys/ subdirectory, so those can be used with following arguments to west build command:

-DCONFIG_GOLIOTH_SYSTEM_CLIENT_CRT_PATH='"keys/PRJ-DEV.crt.der"'
-DCONFIG_GOLIOTH_SYSTEM_CLIENT_KEY_PATH='"keys/PRJ-DEV.key.der"'
github-actions[bot] commented 1 year ago

Visit the preview URL for this PR (updated for commit e0bfc31):

https://golioth-zephyr-sdk-doxygen-dev--pr321-sample-hello-gen-q44rx9pl.web.app

(expires Thu, 24 Nov 2022 17:11:16 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: a389eefadf4b4b68a539327b3459dd66c142cf49