Commit 7cf2fe90 authored by ccarlos's avatar ccarlos
Browse files

Update encrypt.sh

parent 109e11c3
#!/bin/bash #!/bin/bash
if [ ! -e slt2020_pub.pem ] if [ ! -e slt2021_pub.pem ]
then then
echo "> Public key ./slt2020_pub.pem does not exist." echo "> Public key ./slt2021_pub.pem does not exist."
exit 1 exit 1
fi fi
...@@ -13,7 +13,7 @@ then ...@@ -13,7 +13,7 @@ then
echo "> Notebook file $notebookfile does not exist." echo "> Notebook file $notebookfile does not exist."
else else
openssl smime -encrypt -aes256 -in "$notebookfile" -binary -outform DEM \ openssl smime -encrypt -aes256 -in "$notebookfile" -binary -outform DEM \
-out "$notebookfile.encr" slt2020_pub.pem -out "$notebookfile.encr" slt2021_pub.pem
echo "> File encrypted as $notebookfile.encr" echo "> File encrypted as $notebookfile.encr"
fi fi
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment