From 5b447b180e2fa039777597c65b3cd64ad248743a Mon Sep 17 00:00:00 2001 From: Jean-Louis Huynen Date: Thu, 21 Nov 2019 11:45:48 +0100 Subject: [PATCH] chg: [workshop] smallkey crypto hands-on new checks --- .../hands-on-support/SmallKey/answers/checkPrivateKey.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/workshop/5-snake-oil-crypto/hands-on-support/SmallKey/answers/checkPrivateKey.sh b/docs/workshop/5-snake-oil-crypto/hands-on-support/SmallKey/answers/checkPrivateKey.sh index 25baf10..4c151af 100755 --- a/docs/workshop/5-snake-oil-crypto/hands-on-support/SmallKey/answers/checkPrivateKey.sh +++ b/docs/workshop/5-snake-oil-crypto/hands-on-support/SmallKey/answers/checkPrivateKey.sh @@ -1,2 +1,7 @@ #!/bin/bash +echo -e "\e[32m Checking Generated Private Key:\e[0m " openssl rsa -in privateSmallKey.pem -text -check -noout +echo -e "\e[32m Generating Public Key:\e[0m " +openssl pkey -in privateSmallKey.pem -pubout -outform pem +echo -e "\e[32m Cat Original Public Key:\e[0m " +cat ../smallkey.pem