Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

write provisioned certificate to "active-certificate.pem.crt" #466

Merged
merged 2 commits into from
Oct 9, 2024

Conversation

RogerZhongAWS
Copy link
Contributor

@RogerZhongAWS RogerZhongAWS commented Sep 10, 2024

Motivation

  • create a static filepath that gets overwritten upon a successful retry of the Fleet provisioning workflow.
  • QoL for specific applications on the device that may need the x509 certificate to reside at a guaranteed location.

Modifications

Change summary

  • extracted logic into a private function for calling it twice. First time with certificate ID and second time with the "active" prefix

Testing

  • manually tested /w FP template

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@RogerZhongAWS RogerZhongAWS changed the title write certificate to a unique file name + nonunique file name write provisioned certificate to a active-certificate.pem.crt Sep 10, 2024
@RogerZhongAWS RogerZhongAWS changed the title write provisioned certificate to a active-certificate.pem.crt write provisioned certificate to "active-certificate.pem.crt" Sep 10, 2024
@HarshGandhi-AWS HarshGandhi-AWS merged commit faf8033 into main Oct 9, 2024
56 of 72 checks passed
@HarshGandhi-AWS HarshGandhi-AWS deleted the fp-set-active-cert branch October 9, 2024 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants