Skip to content

Commit 6fe950b

Browse files
author
Roland Bracewell Shoemaker
authored
Add PKCS#11 certificate generation tool (letsencrypt#3729)
Tested against relevant hardware for generating both RSA and ECDSA roots and intermediates with keys generated using `gen-key`. Also this makes a few changes to the `gen-key` tool after further experience with the HSM and more reading of the PCKS#11 specification. Main change is the removal of `compatMode`, which was intended to provide support for two naming schemes for EC used in subsequent PKCS#11 drafts. It turns out these schemes were changes in name only and the underlying structs/ints were the exact same (i.e. `CKA_ECDSA_PARAMS == CKA_EC_PARAMS` and `CKM_ECDSA_KEY_PAIR_GEN == CKM_EC_KEY_PAIR_GEN`) and just allowed using one of the two names based on preference. This meant with `compatMode` enabled or disabled the tool did the exact same thing. Fixes letsencrypt#3697.
1 parent c96e1f1 commit 6fe950b

File tree

10 files changed

+1185
-263
lines changed

10 files changed

+1185
-263
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@ tags
3636
# IDE support files
3737
.idea
3838

39+
.vscode/*

0 commit comments

Comments
 (0)