mirror of
https://github.com/shankar0123/certctl.git
synced 2026-06-07 17:31:30 +00:00
743dca2fb3
EST handler tests used fake PEM data (e.g., "MIIBmjCCAUCgAwIBAgIRATest") which is invalid base64 (25 chars, not divisible by 4). Go's pem.Decode fails silently, causing pemToDERChain to return "no certificates found" and tests to get 500 instead of 200. Added generateTestCertPEM() helper that creates a real self-signed ECDSA P-256 certificate, used across all EST handler tests that need cert PEM. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>