#!/bin/sh

source "${BASH_SOURCE%/*}/functions.lib"

print_start gnupg
install gnupg

echo "\nImport public GPG key with 'gpg --import public_key.asc'"
echo "\nImport private GPG key with 'gpg --import private_key.asc'"

echo "\nGiven the KEYID (e.g FA0339620046E260) from the output:"
echo "'gpg --edit-key {KEY} trust quit'"
echo "# enter 5<RETURN>"
echo "# enter y<RETURN>"

echo "\nFinally, verify that key is now trusted with [ultimate] instead of [unknown]"
echo 'gpg --list-keys'

echo "\nImporting SSH keys..."
echo "Creating .ssh folder"
mkdir -p ~/.ssh

:> ~/.ssh/config

echo "Host *" >> ~/.ssh/config
echo "\tUseKeychain yes" >> ~/.ssh/config

echo "\nNow copy your public and private keys to ~/.ssh"
echo "Follow the instructions in the following link to add your key to the ssh-agent"
echo "https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/"

Add script with instructions for security keys
Add script with instructions for security keys

Add a script that installs gnupg and details how to import and setup
 GPG and SSH keys.
