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
if [ ! -e ~/.ssh/slt2020_prv.pem ]
if [ ! -e ~/.ssh/slt2021_prv.pem ]
then
echo "> Private key ~/.ssh/slt2020_prv.pem does not exist."
echo "> Private key ~/.ssh/slt2021_prv.pem does not exist."
exit 1
fi
......@@ -13,7 +13,7 @@ then
echo "> Notebook file $notebookfile does not exist."
else
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'}"
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