wolfssl-examples/pkcs7/README.md

807 B

Examples demonstrating PKCS7

Building

Build and install wolfSSL

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

Build Example

Running make will try to compile all C source files into their own respective example application. Each source file can be compiled separately if desired, for 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