Skip to content

Commit

Permalink
Merge pull request #3 from karmanyaahm/main
Browse files Browse the repository at this point in the history
Add more proofs
  • Loading branch information
shombando committed Nov 5, 2020
2 parents 7a1f5e0 + 9a04467 commit 124c2ce
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 5 deletions.
72 changes: 67 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,53 @@ 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
}

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

read -p "Enter your dev.to username: " keyoxidizer_username
echo -e "Log into your dev.to account and create a new post with the following text:"
echo -e "This is an OpenPGP proof that connects [my OpenPGP key](https://keyoxide.org/$fingerPrint) to [this dev.to account](https://dev.to/$keyoxidizer_username). 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 the full url of the post you created (ex: https://dev.to/USERNAME/POST_TITLE): " keyoxidizer_url
addNotation $keyoxidizer_url
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 "9. dev.to"
echo -e "Enter 'q' to quit to main menu"
read keyoxidizer_proof

Expand All @@ -206,14 +259,23 @@ addProof()
github
;;
4)
mastodon
gitlab
;;
5)
twitter
mastodon
;;
6)
twitter
;;
7)
reddit
;;
8)
hackernews
;;
9)
devto
;;
q)
break
;;
Expand Down
3 changes: 3 additions & 0 deletions readme.org
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,12 @@ chmod +x ./keyoxidizer.sh
- Domain/DNS (note: sometimes DNS records take some time to update)
- Gitea
- Github
- Gitlab
- Mastodon
- Twitter
- Reddit
- Hackernews
- dev.to

* Roadmap
- Incrementally add support for adding proofs to the [[https://keyoxide.org/guides][the different platforms]]. They will be listed under the [[Supported Platforms]] sections.
Expand Down

0 comments on commit 124c2ce

Please sign in to comment.