76 Commits

Author SHA1 Message Date
olszomal d787541107 tests: add digitalSignature keyUsage to leaf certificate 2025-12-31 11:38:21 +01:00
Michał Trojnara dfc3e46a77 Typos 2025-06-20 12:28:43 +02:00
Michał Trojnara d65a2b5286 Fix various typos 2025-06-19 14:18:26 +02:00
olszomal 6b56aef073 Add tests for handling JavaScript files 2025-06-05 14:41:36 +02:00
olszomal 4ee429792d Refactor imports to use explicit submodule imports and organize class/function imports 2024-09-06 11:58:28 +02:00
Petr Vaněk 64305d6415 tests: add import for python-cryptography >= 43.0.0
write_pkcs12_container method raises following error message with
python-cryptography-43.0.0:

  Error: module 'cryptography.hazmat.primitives.serialization' has no attribute 'pkcs12'

Explicit import of the pkcs12 module resolves the issue.
2024-09-02 13:05:55 +02:00
olszomal 2b3228d549 Changed error output to stderr instead of stdout 2024-06-05 16:54:21 +02:00
Małgorzata Olszówka 6e5bef14e9 Rewrite making test certificates (#393)
Also updates obsolete curl dependencies with zlib.
2024-05-22 18:59:53 +02:00
Michał Trojnara ded1f7aa67 Use native HTTP client with OpenSSL 3.0 or later (#378)
Co-authored-by: olszomal <Malgorzata.Olszowka@stunnel.org>
2024-04-09 19:33:31 +02:00
olszomal 0b93a94ffa Fixed cross-signed root CA certificate 2024-02-28 11:52:49 +01:00
Zeijlon (ThinLinc Team) 42e9733916 Fix python 3 compatibility in server_http.py (#350)
Building osslsigncode fails on systems with older versions of Python 3 due to the server_http.py script, part of the test procedure. This script requires the ThreadingHTTPServer module, introduced in Python version 3.7.

A workaround has been implemented to create a ThreadingHTTPServer locally, ensuring backward compatibility with older Python versions.
2024-02-16 12:39:48 +01:00
Michał Trojnara 4576895718 Initial script (text) format support
See #37 for details.
2024-02-12 10:54:18 +01:00
Michał Trojnara 4d08fbb2c1 Only use IPv4 127.0.0.1 for tests
Fix #331
2023-12-21 11:33:48 +01:00
olszomal c909ba82d7 tests: fixed string formatting in Python version earlier than 2.6 2023-11-22 17:53:50 +01:00
olszomal 7b60d6447d tests: initialize resp_data 2023-11-22 17:53:50 +01:00
olszomal 0db17be606 Listing each member of the CAT file 2023-11-20 17:20:03 +01:00
Michał Trojnara 1700455533 APPX support (#303)
Co-authored-by: Maciej Panek <Maciej.panek@punxworks.com>
Co-authored-by: olszomal <Malgorzata.Olszowka@stunnel.org>
2023-09-19 21:23:32 +02:00
olszomal c90166ba8d Fix cTest script 2023-05-09 21:14:19 +02:00
olszomal b00ceee310 Tests: add port argument to python HTTP server 2023-05-09 21:14:19 +02:00
olszomal eec5a0755d Tests: new HTTP server and client 2023-05-01 11:59:06 +02:00
olszomal 41d98c3917 Tests: fix openssl configuration files and makecerts bash script to set X509v3 CRL Distribution Points extension 2023-05-01 11:59:06 +02:00
olszomal 7fa0b21ddd Tests: new certificates with X509v3 CRL Distribution Points extension 2023-05-01 11:59:06 +02:00
olszomal 7bb21c3539 Tests: generate new certificates and keys 2023-04-16 10:43:24 +02:00
olszomal edcb18d63f Tests: use TSA-CRLfile 2023-04-16 10:43:24 +02:00
Małgorzata Olszówka 0f51a06b8f Separate common and format-dependent functions (#241) 2023-03-25 20:32:58 +01:00
olszomal c48a6cdef0 Legacy pkcs12 ciphers tests
Use legacy PKCS#12 container with RC2-40-CBC private key and certificate encryption algorithm
2023-01-10 17:39:53 +01:00
Michał Trojnara 8e075d625d yet another python 3.6 fix 2022-08-08 09:19:19 +02:00
Michał Trojnara 4eeaee4c16 support python 3.6 (and possibly older) 2022-08-08 09:06:45 +02:00
Michał Trojnara 23288f5a00 use the new option name for tests 2022-08-02 21:26:09 +02:00
olszomal 5bf24b34a2 remove certs directory 2022-07-29 18:42:35 +02:00
Michał Trojnara 3d0640a2cc CI for Linux/macOS/Windows (#166) 2022-07-26 16:27:46 +02:00
olszomal 28c68aeebf find osslsigncode path 2022-07-22 14:17:59 +02:00
olszomal 26b7d5f617 change makecers.sh mode 2022-07-21 12:21:19 +02:00
olszomal 6b3450ada8 add test certificates 2022-07-21 12:21:19 +02:00
olszomal ac3e8e5221 improve tests 2022-07-21 12:21:19 +02:00
olszomal 60fe5d15fe use CMake instead of Makefile 2022-05-25 20:27:21 +02:00
olszomal f0207411b9 fix parse MSI_FILE_HDR struct 2022-02-21 19:24:32 +01:00
olszomal 28f6ffbc42 Return the number of failed tests from make_tests 2021-12-26 21:58:44 +01:00
olszomal 46d43d70b3 Test certificates support requirements of openssl 3.0:
- AES-256-CBC encryption algorithm for PKCS#12 files
- required configuration file options
Export LD_LIBRARY_PATH
2021-12-26 21:58:04 +01:00
Michał Trojnara 057d38ee76 Additional test dependency checks 2021-06-27 10:10:01 +02:00
olszomal 180b352102 tests improvements 2021-06-09 23:36:17 +02:00
olszomal f004aa3f48 new testing framework 2021-01-11 21:20:18 +01:00
olszomal 1dc209baa8 fix the default end date and extended key usage for test certificates 2021-01-06 21:24:40 +01:00
olszomal fb1bc06440 CAT file tests 2020-11-02 10:11:10 +01:00
Artem Polishchuk 250521e07f fix(tests): swallows the exit code 2020-10-15 18:15:59 +02:00
olszomal 85b0eb6fa0 improve maketest 2020-10-04 22:05:28 +02:00
olszomal 44a773401c set the certificate expiration date for CRL verification tests 2020-07-24 14:00:49 +02:00
olszomal c0d65b2441 multiple signature test 2020-07-08 22:16:50 +02:00
olszomal 2c919cce9f more TSA servers in tests 2020-05-07 10:43:57 +02:00
olszomal e2f984f5c9 attach DER signature 2020-04-08 14:21:53 +02:00