test/gen_pgp_samples.sh
author Edouard Tisserant <edouard@pep-project.org>
Mon, 24 Oct 2016 21:46:30 +0200
branchkeysync
changeset 1336 f1ee8497bbfd
parent 315 fb80b70e844d
permissions -rw-r--r--
closed branch
Edouard@315
     1
#!/bin/bash
Edouard@315
     2
Edouard@315
     3
# Use this to generate test msg.asc and signature.asc
Edouard@315
     4
Edouard@315
     5
# Keys pair are : 
Edouard@315
     6
#
Edouard@315
     7
# pEp Test Alice (test key don't use) <pep.test.alice@pep-project.org>
Edouard@315
     8
# 6FF00E97
Edouard@315
     9
# 
Edouard@315
    10
# pEp Test Bob (test key, don't use) <pep.test.bob@pep-project.org> 
Edouard@315
    11
# C9C2EE39
Edouard@315
    12
# 
Edouard@315
    13
# pEp Test John (test key, don't use) <pep.test.john@pep-project.org>
Edouard@315
    14
# 70DCF575
Edouard@315
    15
Edouard@315
    16
# msg.asc from msg.c
Edouard@315
    17
# Bob sends a message to Alice and John
Edouard@315
    18
gpg -u C9C2EE39 -s -e -r 6FF00E97 -r 70DCF575 --armor msg
Edouard@315
    19
Edouard@315
    20
# signature.asc from t1.txt
Edouard@315
    21
# Bob signs the message
Edouard@315
    22
gpg --output signature.asc -u C9C2EE39 -sb --armor t1.txt
Edouard@315
    23