<div dir="ltr">you need to start ssl application. Run this<div><br></div><div>application:ensure_all_started(ssl)</div><div><br></div><div>before eldap calls.</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 14, 2015 at 6:45 AM, William B <span dir="ltr"><<a href="mailto:william@firstyear.id.au" target="_blank">william@firstyear.id.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
Hi,<br>
<br>
When I attempt to use the start_tls function in my code as below I am<br>
recieving the error:<br>
<br>
**error:{case_clause,{error,ssl_not_started}}<br>
<br>
The cert is the correct CA cert, and I have verified that TLS and the<br>
cert work with ldap search. The Hosts list is also correct. When<br>
connected to ldap without start_tls, the connection works and can be<br>
quiered.<br>
<br>
How can I proceed debugging this, or am I just missing parameters<br>
needed by start_tls?<br>
<br>
Any advice is appreciated.<br>
<br>
<br>
ldap_starttls(Conn) -><br>
    case eldap:start_tls(Conn, [<br>
        {cacertfile, "/etc/pki/tls/certs/ca.crt"},<br>
        {verify, verify_none}<br>
    ]) of<br>
        ok -> Conn<br>
    end.<br>
<br>
ldap_open(Hosts) -><br>
    case eldap:open(Hosts, [{port, 389}]) of<br>
        {ok, Conn} -> ldap_starttls(Conn);<br>
        {error, Reason} -> io:format("Error ~p", [Reason]);<br>
        {_, _} -> io:format("Error UNKNOWN", [])<br>
    end.<br>
<br>
- --<br>
Sincerely,<br>
<br>
William Brown<br>
<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v2<br>
<br>
iQIcBAEBAgAGBQJUtlbxAAoJEO/EFteBqAmaP7AP/2iMmqZrimEISWUaY6sZz7nx<br>
plYY40ITJ/ec2mFVe5uoWrR/lRySfhKGbtkV6i4cFk/Pvs0prO1P5xCtqGl4dT09<br>
0XJEaPfM4eiqCaEfiCteqwibgPtLMURMiHFS5FGUyyOPf+frsdJMk7kiNuencn2L<br>
7XKZ9tfO12qSgBAvAtdpPrTkw3U+UYj2qnsVC/oYoUH1TnS6UYHnNUUXLrZrcFqw<br>
2qyiXUzVVwl1nlUHPE/4oKCVQp4fMi32fqlO0VRIm3OjMTIUl7GRNtS4/k+g9rdO<br>
7xk9AduNdVSMgF9GAfKNJm+49OAyngiuDv/JLTjscpcmzACPAHHE/RUMGK9skks2<br>
3MwtYzyEDOCqCmrB/gunkex6CCz24NphB2PoxTedmA8xeEiemINhy+27Br8gFQ8p<br>
GVnCfxQML3vh34O7sLamtX4t1hPJWbVAeiP6xEI9uw7ufMAOAj/TB5C2qLfihQ0o<br>
OV3wXNISyba33ffaaUBa6/tgVysAuDVWbq+T4kj0K4q6+bLE4cxBePkNk45uEX16<br>
/GxTgyFx7cTOMybk25JDry9Lxj7zSjaOmAKQaNFv7vWoeranen+t1zcXaAZolFTl<br>
g9zBKhGYXQS2LklMb6exvKoG7lKfRdUaRwZ+K2oxhbKxOUisKbSs4xM5dpioGwTL<br>
FiA4DAtkGHwFr4vhfqzY<br>
=poEY<br>
-----END PGP SIGNATURE-----<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div><br></div>