To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 109e11c3 authored by ccarlos's avatar ccarlos
Browse files

Update decrypt.sh

parent 7aaa4105
#!/bin/bash #!/bin/bash
if [ ! -e ~/.ssh/slt2020_prv.pem ] if [ ! -e ~/.ssh/slt2021_prv.pem ]
then then
echo "> Private key ~/.ssh/slt2020_prv.pem does not exist." echo "> Private key ~/.ssh/slt2021_prv.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 -decrypt -aes256 -in "$notebookfile" -binary -inform DEM \ openssl smime -decrypt -aes256 -in "$notebookfile" -binary -inform DEM \
-inkey ~/.ssh/slt2020_prv.pem -out "${notebookfile%'.encr'}" -inkey ~/.ssh/slt2021_prv.pem -out "${notebookfile%'.encr'}"
echo "> File decrypted as ${notebookfile%'.encr'}" echo "> File decrypted as ${notebookfile%'.encr'}"
fi fi
Markdown is supported
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