Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more proofs #3

Merged
merged 4 commits into from
Nov 5, 2020
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 46 additions & 5 deletions keyoxidizer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,22 @@ github()
fi
}

gitlab() {
fingerPrint=$(cat keyoxidizer.fingerprint)

echo -e "Log into your GitLab instance (like gitlab.com account) and create a new project with a name of your choosing and the project slug set to 'gitlab_proof'."
echo -e "Set the project description to: "
echo -e "[Verifying my OpenPGP key: openpgp4fpr:$fingerPrint]"

read -p "Have completed this step (y/N): " keyoxidizer_response
if [ "$keyoxidizer_response" == "y" ]; then
read -p "Enter the full url of the repo you created (ex: https://gitlab.example.com/USERNAME/gitlab_proof): " keyoxidizer_url
addNotation $keyoxidizer_url
else
echo -e "Exiting"
fi
}

twitter()
{
fingerPrint=`cat keyoxidizer.fingerprint`
Expand All @@ -182,16 +198,35 @@ twitter()
fi
}

hackernews()
{
fingerPrint=`cat keyoxidizer.fingerprint`

echo -e "Log into hackernews and click on your username."
echo -e "Add the following lines to your about:"
echo -e "This is an OpenPGP proof that connects my OpenPGP key to this Hackernews account. For details check out https://keyoxide.org/guides/openpgp-proofs\n\n[Verifying my OpenPGP key: openpgp4fpr:$fingerPrint]"

read -p "Have completed this step (y/N): " keyoxidizer_response
if [ "$keyoxidizer_response" == "y" ]; then
read -p "Enter your Hackernews username here: " hackernews_username
addNotation "https://news.ycombinator.com/user?id=$hackernews_username"
else
echo -e "Exiting"
fi
}

addProof()
{
existingKey
echo -e "Select platform to add proof"
echo -e "1. DNS/Domain"
echo -e "2. Gitea"
echo -e "3. Github"
echo -e "4. Mastadon"
echo -e "5. Twitter"
echo -e "6. Reddit"
echo -e "4. Gitlab"
echo -e "5. Mastadon"
echo -e "6. Twitter"
echo -e "7. Reddit"
echo -e "8. Hackernews"
echo -e "Enter 'q' to quit to main menu"
read keyoxidizer_proof

Expand All @@ -206,14 +241,20 @@ addProof()
github
;;
4)
mastodon
gitlab
;;
5)
twitter
mastodon
;;
6)
twitter
;;
7)
reddit
;;
8)
hackernews
;;
q)
break
;;
Expand Down