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

certs: Fixup the set-cert scripts #71

Merged
merged 1 commit into from
May 20, 2024
Merged

Conversation

alistair23
Copy link
Collaborator

No description provided.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
f { rec = rec $0 ORS }
/-----END CERTIFICATE-----/ { f=0 }
END { if (f=="0") printf "%s", rec }
' > custom_device.cert
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this doing?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to get the last certificate from the file. This seems to be the easiest way

@twilfredo twilfredo merged commit ae9e372 into master May 20, 2024
@alistair23 alistair23 deleted the alistair/set-cert-fixes branch May 20, 2024 02:34
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