Skip to content

Commit

Permalink
leancrypto: Certificates are now validated by BC
Browse files Browse the repository at this point in the history
The resolution of one issue is quite interesting: I had to eliminate the O,
the ST and C field in the X.509 certs to make them pass. Interestingly,
OpenSSL (apart from the crypto aspect) can nicely parse my X.509 cert with
all name components.

In addition, leancrypto did not encode the pubkey for the
Composite-ML-DSA certs as a BIT STRING. The latest bug fix to leancrypto
fixed it.

Signed-off-by: Stephan Mueller <[email protected]>
  • Loading branch information
smuellerDD committed Dec 11, 2024
1 parent 1519230 commit 7318d3e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Binary file modified providers/leancrypto/artifacts_certs_r4.zip
Binary file not shown.
6 changes: 0 additions & 6 deletions providers/leancrypto/gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,8 @@ gen_cert()
--valid-to 2044210606 \
--subject-cn "leancrypto test CA" \
--subject-ou "leancrypto test OU" \
--subject-o leancrypto \
--subject-st Saxony \
--subject-c DE \
--issuer-cn "leancrypto test CA" \
--issuer-ou "leancrypto test OU" \
--issuer-o leancrypto \
--issuer-st Saxony \
--issuer-c DE \
--serial 0102030405060708 \
-o ${TARGETDIR}/${CA_FILENAME} \
--sk-file ${TARGETDIR}/${CA_FILENAME}.privkey \
Expand Down

0 comments on commit 7318d3e

Please sign in to comment.