Skip to content

Conversation

@jackctj117
Copy link
Contributor

Tied to this PR: wolfSSL/wolfTPM#449
This pull request introduces support for signing X.509 certificates using an external callback, allowing integration with hardware security modules (HSMs), TPMs, or other custom signing implementations. The changes include a new API, its implementation, and corresponding unit tests to ensure proper functionality and error handling.

New external signing support:

  • Added a new callback type wc_SignCertCb_t and the API function wc_SignCertCb to asn_public.h, enabling certificate signing via a user-provided callback for external cryptographic devices or custom logic.
  • Implemented the internal logic for wc_SignCertCb in asn.c, including handling for both RSA and non-RSA signatures, buffer management, and error cases.

Testing and validation:

  • Added a comprehensive unit test test_wc_SignCertCb in test_asn.c, including a mock RSA signing callback, certificate generation, signature verification, and error case coverage.

@jackctj117 jackctj117 self-assigned this Jan 7, 2026
@wolfSSL wolfSSL deleted a comment from devin-ai-integration bot Jan 8, 2026
@jackctj117 jackctj117 marked this pull request as draft January 8, 2026 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant