ARMmbed / ARMmbed/mbed-os-example-tls
Certificate check failed
- Dominant language
- C
- Stars
- 31
- Forks
- 49
- PR merge metrics
- No merged PRs in 30d
Description
I have changed TLS_PEM_CA.Using the cacert.pem to fill TLS_PEM_CA .But it failed.I change the debug_level from 0 to 1.
Something return like this.
ssl_tls.c:4643: |1| x509_verify_cert() returned -9984 (-0x2700)
mbedtls_ssl_handshake() returned -0x2700
How i configure it.thanks for your help.
Contributor guide
Research direction
Start with the TLS_PEM_CA and cacert.pem configuration described in the issue, then inspect the reported failure at ssl_tls.c:4643 around x509_verify_cert() and mbedtls_ssl_handshake(). Reproduce the -0x2700 result with debug_level 1 and trace the certificate-verification setup; done means the required configuration is identified and the handshake succeeds or the remaining failure is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100