Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

my wildcard certificate doesn't get accepted with ldap 2.4.23. when i try to connect i get the following error:

TLS certificate verification: subject:
OID.*.domain.com,CN=*.domain.com,OU=LALALA,O=LALALA S.A.,L=LALALA,ST=LALALA,C=XX,
issuer: E=support@domain.com,CN=LALALA Root C.A.,O=LALALA,L=LALALA,ST=LALALA,C=XX,
cipher: AES-256, security level: high, secret key bits: 256, total key bits: 256,
cache hits: 0, cache misses: 0, cache not reusable: 0
TLS: hostname (openldap1.domain.com) does not match common name in certificate (*.domain.com).

my certificate is: CN=*.domain.com AND subjectAltName=DNS:*.domain.com

How can I make it so that my certificate is accepted in LDAP?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

first i've found a page saying that, wildcards in CN don't work with openldap and you have to use subjectAltName! (I can't find that page anymore...)

unfortunately, i've created the certificate like this, which is not the subjectAltName, that you need:

[ req_distinguished_name ]
subjectAltName                =Alternativer Name 1
subjectAltName_default        =DNS:*.domain.com

that's why it is displaying OID. instead of subjectAltName...

i've found the answer for subjectAltName on: http://wiki.cacert.org/VhostTaskForce

After studing of "RFC 2459 - Section Subject Alternative Name" and crossreferencing to the result of isakmpd's certpatch(8) the following should work: [...] To accomplish such an CSR the following entries are needed in the openssl.cnf (please note: I only added the relevant parts for this Attribute)

[ req ]
req_extensions          = v3_req
[ v3_req ]
subjectAltName          = DNS:www.example.com
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.