Skip to content

TLS "certificate could not be validated" clarification in report #1081

Description

@duncangreene

Describe the bug
I believe the device to which the below report pertains does not support/offer TLS 1.3.

Image

The text "certificate could not be validated" implies that there was a certificate, but it could not be validated for some reason (issue with the cert/issue with the cert chain/issue with Testrun itself/etc.), as opposed to the fact that TLS 1.3 is not supported and/or a certificate was not presented as a result.

Expected behavior
If a service doesn't support/offer TLS 1.3, this should be stated as such, to remove any ambiguity over whether a certificate was presented.

Error logs
multitech.zip

Environment (please provide the following information about your setup):

  • Version: 2.1
  • Additional hardware (network adapters)

Additional context
Only modifications from official 2.1 release are as below.

  • resources/test_packs/qualification.json (Set tests to excluded/recommended/informational as appropriate)
  • resources/devices/device_profile.json (Add custom questions)

Activity

  1. jhughesoti commented on Jan 28, 2025

    @jhughesoti
    Contributor

    The details of the certificate failures can be found in the tls-result.json file generated by Testrun in the tls module folder of the report zip. There is currently an open ticket on how best to provide this information into the various module reports when this type of detail is generated. For the report you provided, the details generated indicate it was not signed as the failure:

    "details": "TLS 1.2 not validated: Certificate has a valid time range\nRSA key length passed: 2048 >= 2048\nDevice certificate has not been signed",

  2. duncangreene commented on Jan 31, 2025

    @duncangreene
    Author

    In this particular case the concern was more that the DUT does not support TLS 1.3, but the text against the security.tls.v1_3_server test may lead you to interpret that a certificate was indeed presented, but it couldn't be validated for some reason (issue with the cert/issue with the cert chain/issue with Testrun itself/etc.).

    I would be tempted to suggest that if a service doesn't support/offer TLS 1.3, this should be stated as such in the test description/result text, to remove any ambiguity over whether a certificate was presented or not. 👍

  3. added
    test
    on Apr 14, 2025
  4. added theissue type on Apr 14, 2025
  5. linked a pull request that will close this issueFix bugs in _security_tls_v1_2_server #1248on Apr 22, 2025
  6. KrystsinaT commented on May 23, 2025

    @KrystsinaT
    Collaborator

    Released in 2.2.1.

  7. duncangreene commented on Dec 2, 2025

    @duncangreene
    Author

    @KrystsinaT the issue/clarification detailed here is still not made in 2.2.2.

    Image
  8. duncangreene commented on Mar 16, 2026

    @duncangreene
    Author

    @KrystsinaT the issue/clarification detailed here is still not made in 2.2.2.

    @hitnik are you okay to reopen this issue? This hasn't been fixed as far as I'm aware.

  9. reopened this on Mar 16, 2026
  10. duncangreene commented on May 13, 2026

    @duncangreene
    Author

    Just confirming that this issue is still present in 2.3.3.

    Image

    To be clear, the device under test above does not support/implement TLS at all, and so the suggestion would be to supress the additional information suggesting 'could not be validated' and 'failed to resolve'. If there was a desire to keep this text shouldn't they contain the same message in this case? The difference suggests a subtle difference in result between the two, whereas as already stated, the device does not support/implement TLS at all.

  11. KrystsinaT commented on Jun 29, 2026

    @KrystsinaT
    Collaborator

    Fixed in version 2.3.4. @duncangreene check please.

  12. duncangreene commented on Jun 29, 2026

    @duncangreene
    Author

    @KrystsinaT @hitnik this issue is still present 2.3.4, albeit with a different error/description now for the TLS 1.3 test. To recap, this DUT doesn't implement TLS at all.

    Image
  13. reopened this on Jun 29, 2026
  14. hitnik commented on Jun 29, 2026

    @hitnik
    Collaborator

    @duncangreene Sorry, we misunderstood. We'll add the message 'No outbound TLS connections detected' in the July release.

  15. duncangreene commented on Jun 29, 2026

    @duncangreene
    Author

    @duncangreene Sorry, we misunderstood. We'll add the message 'No outbound TLS connections detected' in the July release.

    Noted, although the TLS server tests more relate to 'inbound' connections/services, so potentially something like "No HTTP/TLS server functionality detected on ports 80, 443, 8080", with an eye on the statement in #904 that says that these tests are only concerned with HTTPS TLS functionality, as opposed to TLS more generally?

  16. added
    framework
    BE
    on Oct 12, 2026
  17. changed the issue type fromtoon Oct 12, 2026
  18. hitnik commented on Oct 12, 2026

    @hitnik
    Collaborator

    The ticket 572810884 has been reported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BEframeworktest

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions