Skip to content

Refuse RSA with NO_CERTS, parse PEM keys only with certs - #89

Merged
Frauschi merged 2 commits into
wolfSSL:masterfrom
padelsbach:nocerts
Dec 3, 2026
Merged

Frauschi merged 2 commits into
wolfSSL:masterfrom
padelsbach:nocerts

Conversation

@padelsbach

Copy link
Copy Markdown
Contributor

Follow up to #84 to disable PEM decoding for RSA when NO_CERTS is set.

Copilot AI balanced review requested due to automatic review settings December 1, 2026 22:21
@padelsbach
padelsbach requested a review from Frauschi December 1, 2026 22:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the certificate-support configuration and key-parsing changes.

No open issues 🎉

What changed in this PR

This follow-up to #84 makes wolfPSA’s configuration checks and Mbed TLS key parsing respect wolfCrypt’s certificate-code requirements.

Changes:

  • Reject RSA-enabled PSA engine builds when NO_CERTS is defined.
  • Require certificate support for PEM key decoding and document the DER-only restriction without it.
  • Add configuration-policy checks and a no-certificates CI matrix entry.
File Description
src/​psa_tf_psa.c Guard PEM decoding and DER-buffer cleanup behind certificate support.
src/​psa_config.h Reject the unsupported RSA and NO_CERTS combination.
docs/​mbedtls-compatibility.md Document PEM parsing requirements.
build-test/​psa-config-policy.sh Check rejected and accepted NO_CERTS configurations.
.github/​workflows/​build-config-matrix.yml Add a build configuration without certificates or RSA.

Review effort: Balanced

@Frauschi Frauschi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3 comments inline, nothing blocking.

Comment thread src/psa_tf_psa.c Resolved
@padelsbach
padelsbach requested a review from Frauschi December 2, 2026 17:03
@padelsbach padelsbach removed their assignment Dec 2, 2026
@Frauschi Frauschi closed this Dec 3, 2026
@Frauschi Frauschi reopened this Dec 3, 2026
@Frauschi
Frauschi merged commit e6ae2f7 into wolfSSL:master Dec 3, 2026
112 checks passed
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.

4 participants