Skip to content

OpenSSL: use default locations for CA certificates if no CA certificate location is supplied by the user #21

@marsupilami79

Description

@marsupilami79

Hello,

I created a small application that uses ldaps and was surprised that the OpenSSL implementations don't use the default system locations for the CA certificates, if no other CA certificate was supplied. I propose to use the default CA certificate stores / locations if the user doesn't supply any information.

The attached patch files add the SSL_CTX_set_default_verify_paths function. They use it to switch to the deault system certificate stores / locations if the user doesn't provide a CA certificate in any of the CertCAFile, PFXfile or PFX properties.

If it helps, I can also create a pull request.

Best regards,

Jan

ssl_openssl3.pas - use SSL_CTX_set_default_verify_paths.patch
ssl_openssl3_lib.pas - add SSL_CTX_set_default_verify_paths.patch
ssl_openssl11.pas - use SSL_CTX_set_default_verify_paths.patch
ssl_openssl11_lib.pas - add SSL_CTX_set_default_verify_paths.patch

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions