Changeset 3f00958 in mod_gnutls


Ignore:
Timestamp:
May 8, 2015, 8:53:36 PM (8 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
asyncio, debian/master, debian/stretch-backports, jessie-backports, main, master, proxy-ticket, upstream
Children:
d92899e
Parents:
1708045
git-author:
Thomas Klute <thomas2.klute@…> (05/08/15 19:12:37)
git-committer:
Thomas Klute <thomas2.klute@…> (05/08/15 20:53:36)
Message:

New test case: PKCS #11 URLs for server key and certificate

The new test case checks if the server can access its key and
certificate using PKCS #11 URLs. SoftHSM (v1 only for now) is used to
provide the PKCS #11 token. If SoftHSM is not available, the test case
is skipped.

Location:
test
Files:
8 added
3 edited

Legend:

Unmodified
Added
Removed
  • test/.gitignore

    r1708045 r3f00958  
    1818*.trs
    1919*.lock
     20tests/24_pkcs11_cert/softhsm.conf
  • test/Makefile.am

    r1708045 r3f00958  
    2424        test-21_TLS_reverse_proxy_wrong_cert.bash \
    2525        test-22_TLS_reverse_proxy_crl_revoke.bash \
    26         test-23_TLS_reverse_proxy_mismatched_priorities.bash
     26        test-23_TLS_reverse_proxy_mismatched_priorities.bash \
     27        test-24_pkcs11_cert.bash
    2728
    2829TESTS = $(check_SCRIPTS)
     
    4950clean-local:
    5051        $(MAKE) -f TestMakefile $(AM_MAKEFLAGS) clean
     52
     53check_DATA += server/softhsm.db
     54MOSTLYCLEANFILES += tests/24_pkcs11_cert/softhsm.conf
     55
     56# The dependency on setup.done is necessary to avoid race conditions
     57# between multiple calls to TestMakefile for key and certificate
     58# generation.
     59server/softhsm.db: setup.done
     60        $(MAKE) -f TestMakefile $(AM_MAKEFLAGS) server/softhsm.db
  • test/TestMakefile

    r1708045 r3f00958  
    7474        certtool --generate-certificate --load-ca-certificate authority/x509.pem --load-ca-privkey authority/secret.key --load-request $(dir $@)cert-request --template $< > $@
    7575
     76%/softhsm.db: %/x509.pem %/secret.key
     77        SOFTHSM_CONF="$(*)-softhsm.conf" ./softhsm.bash init $(dir $@)secret.key $(dir $@)x509.pem
     78
    7679msva.gnupghome/trustdb.gpg: authority/minimal.pgp client/cert.pgp
    7780        mkdir -p -m 0700 $(dir $@)
Note: See TracChangeset for help on using the changeset viewer.