[Date Prev][Date Next] [Chronological] [Thread] [Top]

question about client certs

Hi everyone.

I am writting a small LDAP client.  I am just learning LDAP.

I need to provide LDAP over SSL.

I assume that when I use the ldap_start_tls_s() function that there is a public key that is passed to my client.

How do I find out where this cert is stored on the client machine?

I tried to use the code...

    char *base;
    char *temp = base;
    if (ldap_get_option(ld, LDAP_OPT_X_TLS_CACERTFILE, (void **) (char *) &temp) != LDAP_SUCCESS)
        ldap_perror(ld, "ldap_get_option");
        return (1);

But that didn't seem to provide me the path.  Perhaps I don't really know what this function does.