Skip to content

Commit

Permalink
CSR example using crypto callbacks (HSM).
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarske committed Feb 23, 2022
1 parent 3ebf31b commit 042956c
Show file tree
Hide file tree
Showing 8 changed files with 531 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ signature/signature
#cergen
certgen/newCert*
certgen/certgen_example
certgen/csr_cryptocb
certgen/csr_example
certgen/csr_sign
certgen/csr_w_ed25519_example
Expand Down
7 changes: 5 additions & 2 deletions certgen/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ CFLAGS=-I$(WOLF_INSTALL_DIR)/include -Wall
LIBS=-L$(WOLF_INSTALL_DIR)/lib -lwolfssl


all:certgen_example csr_example csr_w_ed25519_example csr_sign
all:certgen_example csr_example csr_w_ed25519_example csr_sign csr_cryptocb

certgen_example:certgen_example.o
$(CC) -o $@ $^ $(CFLAGS) $(CPPFLAGS) $(LIBS)
Expand All @@ -27,8 +27,11 @@ csr_w_ed25519_example:csr_w_ed25519_example.o
csr_sign:csr_sign.o
$(CC) -o $@ $^ $(CFLAGS) $(CPPFLAGS) $(LIBS)

csr_cryptocb:csr_cryptocb.o
$(CC) -o $@ $^ $(CFLAGS) $(CPPFLAGS) $(LIBS)

.PHONY: clean all

clean:
rm -f *.o certgen_example csr_example csr_w_ed25519_example csr_sign
rm -f *.o certgen_example csr_example csr_w_ed25519_example csr_sign csr_cryptocb
rm -f newCert.*
Loading

0 comments on commit 042956c

Please sign in to comment.