notmuch/test/smime
Daniel Kahn Gillmor 7c7cebffe6 tests/smime: include secret key material for Bob
This is taken from the same Internet Draft that test/smime/ca.crt
comes from.  See that draft for more details.
https://www.ietf.org/id/draft-dkg-lamps-samples-02.html#name-pkcs12-object-for-bob

We don't use it yet, but it will be used to decrypt other messages in
the test suite.

Note that we include it here with an empty passphrase, rather than
with the passphrase "bob" that it is supplied with in the I-D.  The
underlying cryptographic material is the same, but this way we can
import cleanly into gpgsm without having a passphrase set on it (gpgsm
converts an empty-string passphrase into no passphrase at all on
import).

Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
2020-04-30 17:55:11 -03:00
..
bob.p12 tests/smime: include secret key material for Bob 2020-04-30 17:55:11 -03:00
ca.crt tests/smime: Include the Sample LAMPS Certificate Authority 2020-04-30 17:53:54 -03:00
key+cert.pem test: initial tests for S/MIME and notmuch-emacs 2016-01-29 17:45:46 -04:00
README tests/smime: Include the Sample LAMPS Certificate Authority 2020-04-30 17:53:54 -03:00
test.crt test: initial tests for S/MIME and notmuch-emacs 2016-01-29 17:45:46 -04:00

test.crt: self signed certificated
    % gpgsm --gen-key # needs gpgsm 2.1

key+cert.pem: cert + unencryped private
    % gpgsm --import test.crt
    % gpgsm --export-private-key-p12 -out foo.p12  (no passphrase)
    % openssl pkcs12 -in ns.p12 -clcerts -nodes > key+cert.pem

ca.crt: from https://tools.ietf.org/id/draft-dkg-lamps-samples-01.html#name-certificate-authority-certi