-
Notifications
You must be signed in to change notification settings - Fork 3k
mbedtls: allow storing certificates in filesystem #13863
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
mbedtls: allow storing certificates in filesystem #13863
Conversation
128203d
to
38f9ba0
Compare
@facchinm, thank you for your changes. |
Why not add a new Also, this will need tests added before we could accept this sort of PR. |
55d740e
to
7595a47
Compare
@Patater you are right, it was quite awkward. But the overload |
0f4b69a
to
d91a7c4
Compare
d91a7c4
to
2bdd2f2
Compare
2bdd2f2
to
5effb92
Compare
Ping |
@ARMmbed/mbed-os-security Can you please review? |
@0xc0170 maybe we can start CI in // ...? |
CI started |
Jenkins CI Test : ❌ FAILEDBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
@facchinm I think it will be better to create a new feature request for updating tls to 3.0, I am not aware of any plans to update for this new major version (this version contains the fix required here). I'll close this pull request for now. |
Summary of changes
This patch adds
TLSSocketWrapper::set_root_ca_cert_path
to allow using a (filesystem) path instead than anxxd
generated array to store CA certificates.If filesystem support is enabled in
mbed_config.h
or systemwide we try invokingmbedtls_x509_crt_parse_path
which returns the number of certificates it was able to parse (or < 0 if it failed).Impact of changes
Migration actions required
Documentation
Pull request type
Test results
Reviewers