diff options
author | Hans Hörberg <hans.horberg@umu.se> | 2015-06-02 15:34:01 +0200 |
---|---|---|
committer | Hans Hörberg <hans.horberg@umu.se> | 2015-06-02 15:34:01 +0200 |
commit | cddf80f4c0e62fac9e8b41ad6f6ecee42909d55e (patch) | |
tree | 826568e43f0ac1626ad8244a9b5f61cdfacc9142 /tests/test_40_sigver.py | |
parent | 9c2b951be6a830aa4d165821ea4f0d7f245221f2 (diff) | |
download | pysaml2-cddf80f4c0e62fac9e8b41ad6f6ecee42909d55e.tar.gz |
New metadata configuration for encryption.
Diffstat (limited to 'tests/test_40_sigver.py')
-rw-r--r-- | tests/test_40_sigver.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/test_40_sigver.py b/tests/test_40_sigver.py index fd40cbeb..993532bd 100644 --- a/tests/test_40_sigver.py +++ b/tests/test_40_sigver.py @@ -25,6 +25,8 @@ SIMPLE_SAML_PHP_RESPONSE = full_path("simplesamlphp_authnresponse.xml") PUB_KEY = full_path("test.pem") PRIV_KEY = full_path("test.key") +ENC_PUB_KEY = full_path("pki/test_1.crt") +ENC_PRIV_KEY = full_path("pki/test.key") def _eq(l1, l2): return set(l1) == set(l2) @@ -96,6 +98,8 @@ class FakeConfig(): metadata = None cert_file = PUB_KEY key_file = PRIV_KEY + encryption_keypairs = [{"key_file": ENC_PRIV_KEY, "cert_file": ENC_PUB_KEY}] + enc_key_files = [ENC_PRIV_KEY] debug = False cert_handler_extra_class = None generate_cert_func = None @@ -503,8 +507,8 @@ def test_xmlsec_err(): if __name__ == "__main__": - # t = TestSecurity() - # t.setup_class() - # t.test_non_verify_2() + t = TestSecurity() + t.setup_class() + t.test_verify_1() - test_xmlsec_err() + #test_xmlsec_err() |