[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
TLS: private key mismatch Error (or problem)
- To: OpenLDAP-software@OpenLDAP.org
- Subject: TLS: private key mismatch Error (or problem)
- From: Alvaro Poole <pulete@gmail.com>
- Date: Sat, 2 Jul 2005 01:41:08 +0200
- Content-disposition: inline
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=ghn/Hq1s2BD3/auhN/JIQ6Go1+gO1WOjd2GcIF+ikXKrx6F+h9wIP23MZ2bzGXrFCpT7e0fBqPAcBAEs4wrZA5FbreJVFcapQ4Mpws+ZwU45gizDJcxGSt/o3cBQqbhsmvgsfNgj7SQnszDMozzbTMgfEgWEVnBnlmC/B5PxAVI=
Hi, I´m having problems configuring Openldap with TLS/SSL. First of
all, I´m trying to put a server certificate, so I create a certificate
with OpenSSL with the next line:
openssl req -newkey rsa:1024 -x509 -nodes -out ldapcert.pem -keyout
ldapcert.pem -days 365
After this, I configured my slapd.conf with the next lines (but
before, I copied ldapcert.pem to slapd.conf directory):
TLSCACertificateFile ldapcert.pem
TLSCertificadteFile ldapcert.pem
TLSCertificateKeyFile ldapcert.pem
And finally, I launched openldap: (slapd -d 1) and appears this error:
TLS: private key mismatch.
TLS: error:140A80B1:SSL routines:SSL_CTX_check_private_key:no
certificate assigned ssl_lib.c:772
main: TLS init def ctx failed: -1
slapd shutdown: freeing system resources.
slapd stopped.
connections_destroy: nothing to destroy.
I saw the .pem archive and there is a RSA private key, so i don´t why
it happens.
I´ve looking a lot of forums but i haven´t found any answer to this.
I´m using Windows Openldap 2.2.19 (i think that´s not the problem, so
later i´ll move to Linux :) ).
Thanks for help, and sorry for my english.
Regards:
Alvaro
PD: I also tried launch openldap with : slapd -d 1 -h "ldap:///
ldaps:///" but it doesn´t work.