mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-10 10:20:32 -06:00
A Keychain identity came back with an empty `chain`, so a signature made with it carried only the signer's certificate. A validator that doesn't already hold the intermediates (Acrobat, or PdfCraft on another machine) then can't build the path to the root. The Windows certificate store identities already carry the chain Windows builds. `keychain::find` now asks the Security framework for the chain (SecTrust with the basic X.509 policy, no network fetch) and keeps every certificate but the signer's. It is best effort: a certificate macOS can't chain still signs. `chain-legacy.p12` is `chain.p12` re-exported in the legacy format that `security import` accepts, for a new ignored Keychain test. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2.8 KiB
2.8 KiB