-
Notifications
You must be signed in to change notification settings - Fork 706
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: add additional test certs #4353
Conversation
- remove unused artifacts (server cert, intermediate cert and key) - also add more pss examples and a better readme
@@ -121,25 +138,45 @@ cert-gen () { | |||
echo "verifying client certificates" | |||
openssl verify -CAfile ca-cert.pem client-cert.pem | |||
|
|||
echo "cleaning up temporary files" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing I just noticed is that the ca-cert gets added to the server-chain.pem (line 132). It probably shouldn't be in there, root certs aren't actually sent over the wire since the verifier should already have it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At least for AWS services, it seems to be common practice to include the root CA in the chain sent by the server. E.g. S3 returns the leaf, intermediate, root CA, and old CA that cross-signed the Amazon Root
- forgot to remove printf statement :'(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice
cert-gen rsa 2048 rsa2048 | ||
cert-gen rsa 3072 rsa3072 | ||
cert-gen rsa 4096 rsa4096 | ||
# key signature key_size digest directory |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so readable.
Description of changes:
generate-certs.sh
script to also generate certs with different digestsgenerate-certs.sh
script to thetest/pems
foldertestlib.h
Call-outs:
We could this certs to remove some of the free-floating, non reproducible certs that we currently rely on. However the PR seems large enough as is, so I think it's better to wait for the future on that.
Testing:
This is currently being used for test certs in my cert-key-restriction branch.
Existing tests should continue to pass, including the benchmark harness tests which rely on these.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.