Skip to content

Android: LibreSSL fails to load and use system CAs #597

@aberaud

Description

@aberaud

On Android, LibreSSL (used with Asio) fails to use the system CAs (at /etc/security/cacerts) and every certificate check fails with error 19 / unknown ca, despite calling:
ssl_ctx->set_default_verify_paths(); // calls SSL_CTX_set_default_verify_paths

The same code works fine on classic GNU/Linux systems.

I tried adding
ssl_ctx->add_verify_path("/etc/security/cacerts/"); // calls SSL_CTX_load_verify_locations
manually without success.

I noticed the source tree doesn't have any reference to /etc/security/cacerts.
I tried changing crypto/cryptlib.h to use /etc/security/cacerts for X509_CERT_DIR, without any luck.

Expected behavior:
LibreSSL should load Android system CAs when using set_default_verify_paths();

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