summaryrefslogtreecommitdiff
path: root/tests/futility/test_file_types.sh
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2015-10-15 17:54:34 -0700
committerchrome-bot <chrome-bot@chromium.org>2015-10-17 09:53:07 -0700
commit27c90708e63f5f042aa52de6bc1b89c282ca8c4a (patch)
tree356818f84486955e3591c4ab974ce70639c5097a /tests/futility/test_file_types.sh
parent4d47243c9088ef295892fbc25b9c3622e43ad639 (diff)
downloadvboot-27c90708e63f5f042aa52de6bc1b89c282ca8c4a.tar.gz
futility: add support for .pem with public keystabilize-smaug-7566.B
Add support for PEM file containing a RSA Public key in futility "show" and "create" commands. When "futility create" is given a PEM file with only a RSA public key, generate the proper .vbpubk2 rather than failing. BRANCH=smaug BUG=none TEST=make runtests and run manually futility show tests/testkeys/key_rsa4096.pub.pem futility show tests/testkeys/key_rsa4096.pem Change-Id: I707ceca54c80ba21f53869ad86c86fa23b31e665 Reviewed-on: https://chromium-review.googlesource.com/306683 Commit-Ready: Vincent Palatin <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'tests/futility/test_file_types.sh')
-rwxr-xr-xtests/futility/test_file_types.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/futility/test_file_types.sh b/tests/futility/test_file_types.sh
index 470d6313..4b7a9fb6 100755
--- a/tests/futility/test_file_types.sh
+++ b/tests/futility/test_file_types.sh
@@ -43,6 +43,7 @@ test_case "prikey" "tests/devkeys/root_key.vbprivk"
test_case "pubkey21" "tests/futility/data/sample.vbpubk2"
test_case "prikey21" "tests/futility/data/sample.vbprik2"
test_case "pem" "tests/testkeys/key_rsa2048.pem"
+test_case "pem" "tests/testkeys/key_rsa8192.pub.pem"
# Expect failure here.
fail_case "/Sir/Not/Appearing/In/This/Film"