-
Notifications
You must be signed in to change notification settings - Fork 634
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
Add support for openssl PKCS#11 engine to openssl_posix.c #1780
base: main
Are you sure you want to change the base?
Add support for openssl PKCS#11 engine to openssl_posix.c #1780
Conversation
Escape semicolons in config definitions that might be pkcs11 URIs.
16841cc
to
73542a7
Compare
73542a7
to
eb9bcfc
Compare
ec02980
to
3813275
Compare
``` | ||
p11tool --login --load-certificate=aws_iot_pk.crt --write --label=aws_iot_pk "pkcs11:token=default" | ||
``` | ||
|
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.
Steps are missing or its not clear how to add/get Amazon Root CA or private rootCA from system trust store.
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.
They're automatically included by the OS.
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.
See https://p11-glue.github.io/p11-glue/p11-kit/manual/trust-module.html for more information.
I'll add a note similar to:
You can confirm this with the follow cli command:
p11tool --list-all-certs pkcs11:token=System%20Trust | grep Amazon\ Root\ CA
assert( pSslContext != NULL ); | ||
assert( pEngine != NULL ); | ||
assert( pClientCertURI != NULL ); | ||
|
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.
Add debug log for pClientCertURI
here ?
if( pOpensslCredentials->pRootCaPath != NULL ) | ||
/* Initialize the pkcs11 engine if needed */ | ||
if( ( pOpensslCredentials->pPrivateKeyPath != NULL ) && | ||
( pOpensslCredentials->pClientCertPath != NULL ) ) |
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.
Check for pOpensslCredentials->pRootCaPath != NULL
Add support for the libp11 openssl engine and p11-kit to the openssl_posix.c transport interface implementation.
By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.