chg: [workshop] smallkey crypto hands-on new checks

master
Jean-Louis Huynen 2019-11-21 11:45:48 +01:00
parent f664e48c8d
commit 5b447b180e
No known key found for this signature in database
GPG Key ID: 64799157F4BD6B93
1 changed files with 5 additions and 0 deletions

View File

@ -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