-
Notifications
You must be signed in to change notification settings - Fork 283
Closed
Labels
Description
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();