Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added PKCS7 PEM support: #7704

Merged
merged 1 commit into from
Jul 19, 2024
Merged

Added PKCS7 PEM support: #7704

merged 1 commit into from
Jul 19, 2024

Conversation

aidangarske
Copy link
Contributor

@aidangarske aidangarske commented Jul 2, 2024

Description

Added support for PKCS7 PEM "-----BEGIN PKCS7-----" and "-----END PKCS7-----".

The wc_CertPemToDer and wc_DerToPem now support PKCS7_TYPE.

Testing

./configure --enable-pkcs7 --enable-pwdbased --enable-cryptocb --with-libz CFLAGS="-DWOLFSSL_DER_TO_PEM" --enable-debug 
make

wolfssl-examples pkcs7-verify.c used for testing.
pkcs7-verify.c addition for PKCS7 PEM and DER wolfssl examples.
wolfssl-examples/pkcs7/pkcs7-verify.c

@dgarske
Copy link
Contributor

dgarske commented Jul 2, 2024

Please also put up a PR with the wolfssl-examples PKCS7 changes you used for testing and reference it here. We may also ask you to add a test.c case for PKCS7 PEM.

@dgarske dgarske merged commit 74d4ae0 into wolfSSL:master Jul 19, 2024
119 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.

3 participants