Missing X.509 certificate
Server or client cannot be authenticated
Description
This defect occurs when you use a context to handle TLS/SSL connections with these functions, but you do not load an X.509 certificate into the context.
SSL_accept
SSL_connect
SSL_do_handshake
SSL_write
SSL_read
BIO_do_accept
BIO_do_connect
BIO_do_handshake
An X.509 certificate is a digital certificate that is issued to an entity. It contains information that identifies the entity. The certificate is used to authenticate connections to the entity identified in the certificate.
The checker raises a defect if:
For a server authentication, no certificate is loaded before handling a connection.
For a client authentication, the client attempts to connect to a server a second time after getting an
SSL_ERROR_WANT_X509_LOOKUP
error on the first connection attempt.
Risk
When you do not load an X.509 certificate into the context to handle TLS/SSL connections, the connection is not secure and is vulnerable to man-in-the-middle (MITM) attacks.
Fix
Load an X.509 certificate into the context you create to handle TLS/SSL connections.
Examples
Result Information
Group: Cryptography |
Language: C | C++ |
Default: Off |
Command-Line Syntax:
CRYPTO_SSL_NO_CERTIFICATE |
Impact: Medium |
Version History
Introduced in R2019b
See Also
Find defects
(-checkers)
| Missing certification authority list
Topics
- Interpret Bug Finder Results in Polyspace Desktop User Interface
- Address Results in Polyspace User Interface Through Bug Fixes or Justifications
- Interpret Bug Finder Results in Polyspace Access Web Interface (Polyspace Access)
- Address Results in Polyspace Access Through Bug Fixes or Justifications (Polyspace Access)