Skip to content

Commit

Permalink
Add a release key for APEX
Browse files Browse the repository at this point in the history
Currently APEX packages are not resigned by a release key during
a release build. Need to add a release key specific for APEX.
This key is generated like this:
	openssl genrsa -out temp.pem 2048
	openssl req -new -x509 -key temp.pem -out \
	    apexkey.x509.pem -days 10000 -subj \
	    '/C=US/ST=California/L=Santa Clara/O=Intel, \
	    Inc./OU=Intel/CN=Intel/emailAddress=shz@intel.com'
	openssl pkcs8 -in temp.pem -topk8 -outform DER -out \
	    releasekey.pk8 -nocrypt
	avbtool extract_public_key --key foo.pem --output foo.avbpubkey

This key is only for test purpose and for production it needs to
be replaced with customer specific key

Tracked-On: OAM-122509
Signed-off-by: jizhenlo <zhenlong.z.ji@intel.com>
  • Loading branch information
ceiba1985 authored and sysopenci committed Jul 23, 2024
1 parent d762616 commit 368f74a
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 0 deletions.
Binary file added testkeys/cts-release-test/apex.avbpubkey
Binary file not shown.
51 changes: 51 additions & 0 deletions testkeys/cts-release-test/apex.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
-----BEGIN RSA PRIVATE KEY-----
MIIJKAIBAAKCAgEAzT80z1Dh+nqDvowdZDAyxL765HMnIbYQtAE7XgghVajck8zv
mMmSHzL5QA8MFtYlzFGlawRfZrRGQRGQ54xGzwUM390wbu5RVKTkgJYwGMGNF/da
pVpbRh95KxwXpU4pc+MHq1rKsPnGNI9AoUc7GtdyIwyzeQICOtBLi7P21B3zKWdd
AmQqPfNPAorcEe4XWx/T5TDm0mWDUBfU2ushTihpZ2zMybLF9YHwPWIVYGCDh+eE
xnPFdPXOWUalaEjMYFLZFcwphj+VE6o0pUlAK0GS6cGF05trJZGrE+rSXDwvwud2
awBjF0zY4+gGvYx3L2zn4EvKppPFPxzdOWZXnbgzjGvkgzwltYQIKN4A+C1ENZzw
Y0gH0b2deLou0F1bsu8mQLg7n7LbkTmB8F0MiL8fDsCdZZy8DCo8AdMADuUNzzlz
ThxdBVpnmB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VZn3Kl+s9b/75xMcH9FL4VweLYWeLsf8BnwU+MnOkXKB9azC6R
CVi9pUJHp1GFalq054qRCqk+hCGk9BJ5yGFAN/HvFaYXVynFkMuuRwRSuCWRtNY8
RDzp3PFgxKPGv1I3/itshAybWjsVNPZWdKmS/72HMuxCDo8LeFLucThXCjIZVq4a
7EO52IFmSzjhoPVAwja9Uj7G62pGxx8CggEBALVl6XMEy730NsYv+E+3a6z/tgSP
ie7Hybh2FmsyqTO/sUYz7G/jM8+kgOvzptB64U3IfYC4W0+9RJb4XeSEWNuKbX3W
Q+OHHEiCAlvohSkR4cQv3gJXbjBUMBTI/alEY/8FcekmhqopCkN61N60wxsxwYT3
vNm/slbZSTpKBIgbcoCPZlQzgo5DPvvi2N5JGFnwclVcwYa6bX0in3cuJ36IcF1v
SymVB0f3OIJrhDaNNKhCF6aIKumG6DNpBPkXnUMc0mhDgoqXLlL/DxjOB7DZb6w6
Y21nk1X07SKlwmnqIDNOqKXBuj6VO9VtmkqIu3V2W0/WjmpmiARhzMCrj/w=
-----END RSA PRIVATE KEY-----
Binary file added testkeys/cts-release-test/apex.pk8
Binary file not shown.
35 changes: 35 additions & 0 deletions testkeys/cts-release-test/apex.x509.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
-----BEGIN CERTIFICATE-----
MIIF/TCCA+WgAwIBAgIUK3ySGWTToJPXiTiM3uQcanlrKRkwDQYJKoZIhvcNAQEL
BQAwgYwxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlhMRQwEgYDVQQH
DAtTYW50YSBDbGFyYTEUMBIGA1UECgwLSW50ZWwsIEluYy4xDjAMBgNVBAsMBUlu
dGVsMQ4wDAYDVQQDDAVJbnRlbDEcMBoGCSqGSIb3DQEJARYNc2h6QGludGVsLmNv
bTAgFw0yNDA0MjkwODA3NDBaGA8yMjk4MDIxMjA4MDc0MFowgYwxCzAJBgNVBAYT
AlVTMRMwEQYDVQQIDApDYWxpZm9ybmlhMRQ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