Guest User

Untitled

a guest
Feb 16th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. set -o errexit
  4. set -o pipefail
  5. set -o nounset
  6.  
  7.  
  8. # DECRYPT PubKey + PriKey
  9. #-----------------------------------------------------------------------------------------------------
  10.  
  11.  
  12. PUBKEY_FILE=anapub.key
  13. PRIKEY_FILE=anapri.key
  14.  
  15. DEC_PUBKEY_FILE=anapubDec.key
  16. DEC_PRIKEY_FILE=anapriDec.key
  17.  
  18.  
  19. echo "Keys to decrypt:"
  20. ls -l $PUBKEY_FILE $PRIKEY_FILE
  21.  
  22. gpg --output $DEC_REVOKE_FILE --decrypt
  23. gpg --output $DEC_PRIKEY_FILE --decrypt
  24.  
  25. echo "Keys output files:"
  26. ls -l $DEC_PUBKEY_FILE $DEC_PRIKEY_FILE
Add Comment
Please, Sign In to add comment