[Date Prev][Date Next]
Hi there guys.
Well, I'm making some progress securing my ldap server by reading the list and the oficial how-to, but I'm facing a new problem.
So, I've created the certificates using this link.
Then in my slapd.conf I've got. (server side )
#security ssf=128 update_ssf=128 simple_bind=128
security ssf=1 update_ssf=112 simple_bind=64
ldap.conf (server side )
With this configuration everything seems to work fine, but now, what I want to do is to force my clients to use a certificate to connect,
so, if I did not misundestrand it wrong, the demand options is a must.
So, when I change TLSVerifyClient never to demand. I've get the following ( alway on my server )
linux:/etc/ssl # openssl s_client -connect localhost:636 -state -showcerts -CAfile
SSL_connect:SSLv2/v3 write client hello A
SSL_connect:SSLv3 read server hello A
depth=1 /C=AU/ST=Some State/L=City/O=Internet Widgits Pty Ltd/OU=Section/CN=localhost/emailAddress=
depth=0 /C=AU/ST=Some Even State/L=City/O=Internet Widgits Pty Ltd/OU=Section/CN=localhost/emailAddressemail@example.com
SSL_connect:SSLv3 read server certificate A
SSL_connect:SSLv3 read server certificate request A
SSL_connect:SSLv3 read server done A
SSL_connect:SSLv3 write client certificate A
SSL_connect:SSLv3 write client key exchange A
SSL_connect:SSLv3 write change cipher spec A
SSL_connect:SSLv3 write finished A
SSL_connect:SSLv3 flush data
SSL3 alert read:fatal:handshake failure
SSL_connect:failed in SSLv3 read finished A
6274:error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure:s3_pkt.c:1052:SSL alert number 40
6274:error:140790E5:SSL routines:SSL23_WRITE:ssl handshake failure:s23_lib.c:226:
Making some searches in the mailing list I found a guy who had the same problem, and he was told that with the
demand option we force slapd to ask for a client certificate, and that the client certificate is a must.
Well, now, I do not get it, cuz I'm authenticating against myself, with teh certificates I generated before,
maybe ai have to generate a separate pair of certificates, do not know.
With never, and always it works as suggested by someone in the list, who said that first we need try a lower option (never, allow )
to test if the server works ) my problem is with the demand option.
What am I mising here?
Sorry for my stupidity, I do not get it yet.
Thanks in advance and or your valuable time.