From: Alexey Borovskoy <alexey_borovskoy@mail.ru>
To: sisyphus@altlinux.ru
Subject: [sisyphus] OpenLDAP плюс TLS. Глюк.
Date: Fri, 7 May 2004 00:20:00 +1300
Message-ID: <200405070020.27446.alexey_borovskoy@mail.ru> (raw)
[-- Attachment #1: Type: text/plain, Size: 1557 bytes --]
Добрый вечер.
Исходные данные:
openldap-servers-2.1.26-alt3.1
openldap-clients-2.1.26-alt3.1
openldap-2.1.26-alt3.1
openssl-0.9.6m-alt1
Не могу понять как запустить TLS. Создал CA, создал запрос на
сертификат сервера, подписал запрос. Получил: CA Cert, Server
Cert, Server Key.
openssl verify и openssl s_server + openssl s_client ничего
странного не замечают.
Делаю cat CA Cert Server Cert Server Key >slapd.pem, который
кладу вместо сгенеренного автоматически при установке пакета (с
ним тоже не работает). Здесь без разницы, можно и россыпью - все
равно не работает.
Раскомментирую TLSCipherSuite, TLSCertificateFile,
TLSCertificateKeyFile, TLSCACertificateFile
При запуске сервера получаю мину:
# slapd -d 5 -h 'ldap://alb.home ldaps://alb.home'
>>> dnNormalize: <cn=Subschema>
<<< dnNormalize: <cn=subschema>
TRANSPORT:: ldap_pvt_tls_init_def_ctx: TLS private key mismatch.
TRANSPORT:: tls_report_error: TLS error:0B080074:x509 certificate
routines:X509_check_private_key:key values mismatch
x509_cmp.c:383
TRANSPORT:: tls_report_error: TLS error:140A80BE:SSL
routines:SSL_CTX_check_private_key:no private key assigned
ssl_lib.c:670
SLAPD:: main: tls init def ctx failed: -1
SLAPD:: main: slapd stopped.
Если вместо CA Cert подсунуть Server Cert (как прокатывало в
2.0.x), то сервер запускается но клиентов не пускает и говорит
что не может проверить сертификат.
Что я делаю не так? Что нужно подкрутить чтобы эта конструкция
заработала?
--
Алексей.
GPG key fingerprint
949B BC0E 2C44 7528 4F63 2753 E37A 9E3F 11F3 BDE1
[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next reply other threads:[~2004-05-06 11:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-06 11:20 Alexey Borovskoy [this message]
2004-05-07 10:29 ` vserge
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200405070020.27446.alexey_borovskoy@mail.ru \
--to=alexey_borovskoy@mail.ru \
--cc=sisyphus@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git