olszomal
68e8845ef1
Improve PKCS#7 verification with OpenSSL 3.5
...
Enhanced verification logic for PKCS#7 signedData structures by introducing a dedicated `verify_pkcs7_data()` function. This update addresses compatibility with older OpenSSL versions (< 3.0.5) and ensures correct handling of detached signed content using a BIO buffer.
The change enables support for PKCS#7 inner content (RFC 2315, section 7), as per OpenSSL PR#22575.
Refactored timestamp and authenticode verification functions to reduce duplication and properly manage X509_STORE and X509_CRL structures.
2025-05-01 11:21:29 +02:00
olszomal
475ea95ba3
Fix control flow and braces for engine and provider support
2025-05-01 11:21:29 +02:00
Maxim Bagryantsev
d352dcc1a5
Do not try to load engine twice
2025-04-18 10:46:20 +02:00
olszomal
4bd167a8be
Fixed directly dereferencing parameter p7, CID 1576008
2025-03-31 13:19:35 +02:00
olszomal
e7405fa839
Simplify error handling in PKCS#7 certificate loading, CID 1639170
2025-03-31 13:19:35 +02:00
olszomal
838aaaee8d
libp11 PKCS#11 provider support
2025-03-28 14:05:12 +01:00
olszomal
e8f19a6efe
Added verbose output for digest encryption algorithm and signature during verification
2024-12-31 13:53:46 +01:00
olszomal
40ce811701
Fixed conditional compilation for CURL and proxy support
2024-10-25 17:48:01 +02:00
Małgorzata Olszówka
db5b4c4dc0
Add the "-engineCtrl" option to control hardware and CNG engines ( #405 )
...
Documentation updated for CNG engine 1.1 compatibility.
2024-09-08 19:23:38 +02:00
olszomal
21133f9c3b
Added the '-blobFile' option to specify a file containing the blob content
2024-09-04 17:51:35 +02:00
olszomal
2b3228d549
Changed error output to stderr instead of stdout
2024-06-05 16:54:21 +02:00
olszomal
476168e09e
Added the "-ignore-crl" option to disable CRL online verification
2024-06-03 12:16:02 +02:00
olszomal
41b662a8fe
Checked cFolders value
2024-05-31 16:47:31 +02:00
Brad Hughes
825c9dad7c
Add '-login' option to force a login to PKCS11 engines
2024-05-22 19:06:06 +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
olszomal
aa8c8dd720
Type casting of the read() return value
2024-04-10 17:09:01 +02:00
olszomal
16c5e5aa4a
Squashed logically dead code for curl response code for openssl version 3.0.0 and later, CID 1585046
2024-04-10 17:09:01 +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
Steve McIntyre
6ad2679f17
Read the password from stdin if desired
...
Use the common convention: "-" means to use stdin
Signed-off-by: Steve McIntyre <steve.mcintyre@pexip.com>
2024-03-28 21:33:01 +01:00
olszomal
4776f43f04
Improved manual
2024-03-26 18:28:02 +01:00
olszomal
0a0761746f
Fixed memory corruption
2024-03-08 16:59:34 +01:00
olszomal
f51e2a4869
Intercepted X509_V_FLAG_CHECK_SS_SIGNATURE verify error
2024-03-08 16:59:34 +01:00
olszomal
093ed12c66
Supported CRL decoding in DER and PEM format
2024-03-08 16:59:34 +01:00
olszomal
71a046a2d0
Ignore missing PKCS#9 signing time field (NID_pkcs9_signingTime: 1.2.840.113549.1.9.5) in the CMS_ContentInfo structure.
...
Timestamping time for verification is get from embedded content in this CMS_ContentInfo structure.
2024-03-08 16:59:34 +01:00
olszomal
c73f82b558
Set the NONCE field in a TSA request
2024-03-08 16:59:34 +01:00
olszomal
192e7a732b
Fixed memory leaks
2024-03-01 17:50:20 +01:00
olszomal
3998bcabb2
Simplify BIO chain free up and FILE_FORMAT_CTX cleanup
2024-02-28 15:55:25 +01:00
olszomal
fa40c57f80
Simplify checking whether a signature exists
2024-02-28 11:55:21 +01:00
olszomal
b661ed08ed
Fix fuzzer error - corrupted data content
2024-02-20 17:48:55 +01:00
olszomal
ead0584611
Disable curl dependence
2024-02-20 17:48:31 +01:00
olszomal
1bc7fc36b8
Connect to CRL Distribution Points through the configured proxy when verifying
2024-02-19 12:19:44 +01:00
olszomal
b2024cee9d
Add -ignore-cdp option to help
2024-02-16 12:30:29 +01:00
olszomal
9d152b8477
Fix url resource leak, CID 1583652, 1583653
2024-02-16 12:30:29 +01:00
olszomal
7a02d51a83
Print failed certificate chain retrieved from the signature
2024-02-15 13:07:02 +01:00
olszomal
dac68a3a4d
Disable CRL Distribution Points online verification
2024-02-15 12:30:50 +01:00
Michał Trojnara
cedb8b5798
Print default -CAfile in "osslsigncode -v"
...
Fix #344
2024-02-12 12:31:57 +01:00
Michał Trojnara
4576895718
Initial script (text) format support
...
See #37 for details.
2024-02-12 10:54:18 +01:00
olszomal
31b046cf98
Fix dereference after null check, CID 1576008
2024-01-24 09:23:55 +01:00
olszomal
f22c83514c
Simplify obtaining an existing signature and creating a new one
2024-01-23 19:00:22 +01:00
olszomal
44ca1f38e6
PKCS9_SEQUENCE_NUMBER authenticated attribute support
2024-01-23 19:00:22 +01:00
olszomal
0985c47990
Add a new "-index" option to enable verification or addition of attributes to the signature at a certain position
2024-01-23 19:00:22 +01:00
olszomal
5da62de5ef
Fixed adding signing time
2024-01-08 11:48:10 +01:00
olszomal
64e1bba96b
Add a new command extract-data to extract a PKCS#7 data content to be signed
2023-12-19 13:07:19 +01:00
olszomal
7285778cb0
Use X509_LOOKUP_load_file() to load certificates with a lookup using the implementation X509_LOOKUP_file()
2023-12-03 18:33:50 +01:00
olszomal
0db17be606
Listing each member of the CAT file
2023-11-20 17:20:03 +01:00
olszomal
f9ad19d4a2
Signature index presentation
2023-11-14 10:33:04 +01:00
olszomal
6f4e9ab597
Fix dereference after null check, CID 1570976
2023-11-14 10:33:04 +01:00
olszomal
6d6270094e
Simplify unlinking outfile
2023-11-13 13:50:41 +01:00
olszomal
57563716d1
Enable x mode modifier if available
2023-11-13 13:50:41 +01:00
olszomal
8ab8a133f7
Overwriting an existing file is not supported
2023-11-13 13:50:41 +01:00