Skip to content

Add the test signing certificates for secure boot#4866

Merged
qiluo-msft merged 3 commits intosonic-net:masterfrom
xumia:xumia_f15
Jun 29, 2020
Merged

Add the test signing certificates for secure boot#4866
qiluo-msft merged 3 commits intosonic-net:masterfrom
xumia:xumia_f15

Conversation

@xumia
Copy link
Copy Markdown
Collaborator

@xumia xumia commented Jun 29, 2020

- Why I did it
Check in the test certificates to sign aboot image for secure boot, if the certificates not specified, the test certificates will be used. The certificates are only for test, not for product.

- How I did it

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)


# If the ca certificate does not exist, the test certificate will be used to sign the image
if [ ! -f "$CA_CERT" ]; then
TEST_CERT_PATH=files/image_config/secureboot/test-certs
Copy link
Copy Markdown
Collaborator

@qiluo-msft qiluo-msft Jun 29, 2020

Choose a reason for hiding this comment

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

add local ?
And change variable name to lower case. #Closed

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Seems it cannot be changed to local, it only can be used in a function.

@@ -0,0 +1,51 @@
-----BEGIN RSA PRIVATE KEY-----
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Do you need this file in build process?

Copy link
Copy Markdown
Collaborator Author

@xumia xumia Jun 29, 2020

Choose a reason for hiding this comment

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

Removed and regenerate the certificates.

Copy link
Copy Markdown
Collaborator

@qiluo-msft qiluo-msft left a comment

Choose a reason for hiding this comment

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

As comments

@qiluo-msft qiluo-msft merged commit 5f16e96 into sonic-net:master Jun 29, 2020
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