Skip to content

[Question][delivery_correos_express] SSL CERTIFICATE_VERIFY_FAILED against test endpoint (www.test.cexpr.es) #1184

Description

@madisi98

Module

delivery_correos_express
Odoo version: 18.0
Module version / commit: be5ec45

Describe the bug

When testing the integration against the Correos Express test environment, requests fail during SSL certificate validation. The test host (www.test.cexpr.es) appears to serve a certificate chain that does not validate against standard public CA bundles — the chain includes a self-signed certificate.

To Reproduce

Configure a Correos Express delivery carrier set to the test environment.
Trigger a shipment creation (which calls grabacionEnvio).

Error

HTTPSConnectionPool(host='www.test.cexpr.es', port=443): Max retries exceeded with url: /wsps/apiRestGrabacionEnviok8s/json/grabacionEnvio (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1000)')))

Expected behavior
Requests against the test endpoint should complete, or the module should provide a documented way to supply a custom CA bundle / handle the test environment's certificate chain.

Additional context

  • Has anyone else hit this against www.test.cexpr.es? Is it a known/intermittent issue with their test environment's certificate?
  • Does the module expose a hook for a custom CA bundle, or does it rely on the system / certifi trust store and the REQUESTS_CA_BUNDLE environment variable?
  • Would the maintainers consider adding an optional, test-environment-only setting to supply a CA bundle (or otherwise document the recommended workaround)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions