From f79ee0e3999dfd04af306aced213f20b7f8e0904 Mon Sep 17 00:00:00 2001 From: Jakob Odersky Date: Wed, 22 Apr 2015 15:06:49 +0200 Subject: initial commit --- README.md | 15 + gpg/card/README.md | 18 + gpg/card/dist/card.pdf | Bin 0 -> 27829 bytes gpg/card/makecard | 111 ++ gpg/card/makecard-pdf | 4 + gpg/card/multiple.svg | 1548 ++++++++++++++++++++ gpg/card/single.svg | 129 ++ gpg/skeybase/.gitignore | 9 + gpg/skeybase/project/Build.scala | 28 + gpg/skeybase/project/build.properties | 1 + .../com/github/jodersky/skeybase/Keybase.scala | 61 + .../scala/com/github/jodersky/skeybase/Main.scala | 39 + .../github/jodersky/skeybase/openpgp/Backend.scala | 18 + .../github/jodersky/skeybase/openpgp/GnuPG.scala | 58 + .../com/github/jodersky/skeybase/responses.scala | 7 + .../skeybase/verification/GitHubVerifier.scala | 64 + .../verification/VerificationException.scala | 4 + .../jodersky/skeybase/verification/Verifier.scala | 109 ++ .../verification/WebsiteFileVerifier.scala | 39 + .../skeybase/verification/statements.scala | 6 + ssl/manual-procedure.txt | 25 + ssl/uca/README.md | 11 + ssl/uca/uca | 78 + 23 files changed, 2382 insertions(+) create mode 100644 README.md create mode 100644 gpg/card/README.md create mode 100644 gpg/card/dist/card.pdf create mode 100755 gpg/card/makecard create mode 100755 gpg/card/makecard-pdf create mode 100644 gpg/card/multiple.svg create mode 100644 gpg/card/single.svg create mode 100644 gpg/skeybase/.gitignore create mode 100644 gpg/skeybase/project/Build.scala create mode 100644 gpg/skeybase/project/build.properties create mode 100644 gpg/skeybase/src/main/scala/com/github/jodersky/skeybase/Keybase.scala create mode 100644 gpg/skeybase/src/main/scala/com/github/jodersky/skeybase/Main.scala create mode 100644 gpg/skeybase/src/main/scala/com/github/jodersky/skeybase/openpgp/Backend.scala create mode 100644 gpg/skeybase/src/main/scala/com/github/jodersky/skeybase/openpgp/GnuPG.scala create mode 100644 gpg/skeybase/src/main/scala/com/github/jodersky/skeybase/responses.scala create mode 100644 gpg/skeybase/src/main/scala/com/github/jodersky/skeybase/verification/GitHubVerifier.scala create mode 100644 gpg/skeybase/src/main/scala/com/github/jodersky/skeybase/verification/VerificationException.scala create mode 100644 gpg/skeybase/src/main/scala/com/github/jodersky/skeybase/verification/Verifier.scala create mode 100644 gpg/skeybase/src/main/scala/com/github/jodersky/skeybase/verification/WebsiteFileVerifier.scala create mode 100644 gpg/skeybase/src/main/scala/com/github/jodersky/skeybase/verification/statements.scala create mode 100644 ssl/manual-procedure.txt create mode 100644 ssl/uca/README.md create mode 100755 ssl/uca/uca diff --git a/README.md b/README.md new file mode 100644 index 0000000..416678a --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +# Security Utilities and Instructions + +This repository is a collection of programs and instructions for various security and privacy-related software. +The software contained are not custom implementations of security protocols, they are wrappers for well-established +tools. + +# Outline + +## GnuPG + - card: create business cards from gpg keys + - skeybase: an independent keybase.io client, capable of verifying identity proofs + +## SSL + - instructions on manually managing keys and certicates + - uca: tiny certificate authority \ No newline at end of file diff --git a/gpg/card/README.md b/gpg/card/README.md new file mode 100644 index 0000000..137d68d --- /dev/null +++ b/gpg/card/README.md @@ -0,0 +1,18 @@ +# OpenPGP Business Cards + +Generate business cards with OpenPGP fingerprints. + +## Idea +Templates are designed as scalable vector graphics with a program such as inkscape. +Key values in the templates are replaced by values extracted from GnuPG keys. + +## Usage +Run `makecard -h` for a description of available options. + +## Example +See `dist` folder for examples. + +## Dependencies + - GnuPG + - qrencode + - *optional* inkscape to convert SVGs to PDFs \ No newline at end of file diff --git a/gpg/card/dist/card.pdf b/gpg/card/dist/card.pdf new file mode 100644 index 0000000..c484212 Binary files /dev/null and b/gpg/card/dist/card.pdf differ diff --git a/gpg/card/makecard b/gpg/card/makecard new file mode 100755 index 0000000..cf6be0b --- /dev/null +++ b/gpg/card/makecard @@ -0,0 +1,111 @@ +#!/bin/bash +# +# Creates an OpenPGP fingerprint business card. +# This script uses an SVG file as a template and replaces +# values such as $NAME and $FINGERPRINT with contents extracted +# from a key. +# +# Note that this script uses "gpg --with-colons" to parse key information. +# Documentation on the returned format can be found in "doc/DETAILS" +# of the GnuPG distribution. + +set -e + +# Show help +print_usage() { +cat <<- EOF +makecard - Create business cards with GnuPG + + $0 [-t template] gpgid + +Print an SVG business card containing an OpenPGP fingerprint to standard output. + + -t template + Use the file