wolfssl-examples/pkcs7
David Garske 9af7b9412a Improved error checking and cleanup based on peer review. 2018-07-12 13:52:28 -07:00
..
Makefile Added new examples for ECC and PKCS7. Moved the signature/firmware_sign example into new `ecc` folder. 2018-06-06 14:00:11 -07:00
README.md Added new examples for ECC and PKCS7. Moved the signature/firmware_sign example into new `ecc` folder. 2018-06-06 14:00:11 -07:00
pkcs7-verify.c Improved error checking and cleanup based on peer review. 2018-07-12 13:52:28 -07:00
signed.p7s Added new examples for ECC and PKCS7. Moved the signature/firmware_sign example into new `ecc` folder. 2018-06-06 14:00:11 -07:00

README.md

Examples demonstrating PKCS7

Building

Build and install wolfSSL

./configure --enable-pkcs7 && make && sudo make install

Build Example

make
gcc -o pkcs7 pkcs7.c -Wall -I/usr/local/include -Os -L/usr/local/lib -lm -lwolfssl
gcc -o ecc-verify ecc-verify.c -Wall -I/usr/local/include -Os -L/usr/local/lib -lm -lwolfssl

Debug

To enable debug change the Makefile to:

CFLAGS+=$(DEBUG_FLAGS)
#CFLAGS+=$(OPTIMIZE)

Build wolfSSL using: ./configure --enable-pkcs7 --enable-debug && make && sudo make install

Usage

pkcs7-verify

./pkcs7-verify 
Der 1633
PKCS7 Verify Success