Certs generated with TinyCA2 and openssl cause errors in openldap and gnutls
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openldap (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
I have generated certs with TinyCA2 for apache, openvpn, and other systems and it works. But openldap can't handle the certs. I have confirmed that openldap does work with locally generated certs.
I use this to generate the certs(fake):
openssl req -new -nodes -out req.pem -keyout key.pem
openssl rsa -in key.pem -out new.key.pem
openssl x509 -in req.pem -out ca-cert -req -signkey new.key.pem -days 9999
mv new.key.pem server.pem
cat ca-cert >> server.pem
That works. But using my certs I get this:
2.5.13.0 (objectIdentifi
main: TLS init def ctx failed: -1
slapd destroy: freeing system resources.
slapd stopped.
connections_
I even have generated new fake certs that I can upload here for people to take a look at. I can reproduce this error easily.
I am flagging this as a security vulnerability because it deals with problems with certs. The problem is either with openssl, gnutls, or me.
visibility: | private → public |
Here is the cert, the ca cert, and the key. All of these were generated with tinyca2, and fail to work with openldap. They are fake.