Changeset 3e800f9 in mod_gnutls


Ignore:
Timestamp:
Jan 29, 2013, 9:56:00 PM (7 years ago)
Author:
Daniel Kahn Gillmor <dkg@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, msva, upstream
Children:
834d926
Parents:
7d1ab49
git-author:
Daniel Kahn Gillmor <dkg@…> (01/29/13 21:40:33)
git-committer:
Daniel Kahn Gillmor <dkg@…> (01/29/13 21:56:00)
Message:

test suite: OpenPGP certificates and secrets

Make ASCII-armored OpenPGP certificates and secret keys for everyone
signed by the "Testing Authority".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • t/Makefile

    r7d1ab49 r3e800f9  
    2626### for setting up a little miniature CA + server + client environment:
    2727identities := server authority client imposter rogueca
    28 tokens := x509.pem pubring.gpg secret.key
     28tokens := x509.pem secring.gpg secret.key cert.pgp secret.pgp
    2929all_tokens := $(foreach id,$(identities),$(foreach token,$(tokens),$(id)/$(token)))
    3030
     
    4040        certtool --generate-privkey > $@
    4141
    42 %/pubring.gpg: %.uid %/secret.key
     42%/secring.gpg: %.uid %/secret.key
    4343        rm -f $(dir $@)pubring.gpg $(dir $@)secring.gpg $(dir $@)trustdb.gpg
    4444        PEM2OPENPGP_EXPIRATION=86400 PEM2OPENPGP_USAGE_FLAGS=authenticate,certify pem2openpgp "$$(cat $<)" < $(dir $@)secret.key | GNUPGHOME=$(dir $@) gpg --import
    4545        printf "%s:6:\n" "$$(GNUPGHOME=$(dir $@) gpg --with-colons --list-secret-keys --fingerprint | grep ^fpr: | cut -f 10 -d :)" | GNUPGHOME=$(dir $@) gpg --import-ownertrust
    4646
     47%/gpg.conf: %/secring.gpg
     48        printf "default-key %s\n" "$$(GNUPGHOME=$(dir $@) gpg --with-colons --list-secret-keys --fingerprint | grep ^fpr: | cut -f 10 -d :)" > $@
     49
     50%/secret.pgp: %/secring.gpg
     51        GNUPGHOME=$(dir $@) gpg --armor --batch --no-tty --yes --export-secret-key "$$(GNUPGHOME=$(dir $@) gpg --with-colons --list-secret-keys --fingerprint | grep ^fpr: | cut -f 10 -d :)" > $@
     52
     53%/minimal.pgp: %/secring.gpg
     54        GNUPGHOME=$(dir $@) gpg --armor --export "$$(GNUPGHOME=$(dir $@) gpg --with-colons --list-secret-keys --fingerprint | grep ^fpr: | cut -f 10 -d :)" > $@
     55
     56%/cert.pgp: %/minimal.pgp authority/gpg.conf
     57        GNUPGHOME=authority gpg --import $<
     58        GNUPGHOME=authority gpg --batch --sign-key --no-tty --yes "$$(GNUPGHOME=$(dir $@) gpg --with-colons --list-secret-keys --fingerprint | grep ^fpr: | cut -f 10 -d :)"
     59        GNUPGHOME=authority gpg --armor --export "$$(GNUPGHOME=$(dir $@) gpg --with-colons --list-secret-keys --fingerprint | grep ^fpr: | cut -f 10 -d :)" > $@
     60
     61# special cases for the authorities' root certs:
    4762authority/x509.pem: authority.template authority/secret.key
    4863        certtool --generate-self-signed --load-privkey=authority/secret.key --template=authority.template > $@
     
    6277
    6378clean:
    64         rm -rf server client authority logs cache outputs setup.done *.template
     79        rm -rf server client authority logs cache outputs setup.done server.template
    6580
    6681.PHONY: all clean
Note: See TracChangeset for help on using the changeset viewer.