Repository navigation
certs: add master2.ldap.test as a SAN on the LDAP certificate - #234
aborah-sudo wants to merge 1 commit into
Conversation
The cert was CN=master.ldap.test with no subjectAltName, so StartTLS to the master2.ldap.test alias failed hostname verification under ldap_tls_reqcert = demand. gen-certs.sh now builds a per-service SAN list, each certificate getting its own hostname plus any aliases. Only master.ldap.test.crt is regenerated, re-signed with the existing CA and key; a full run would also replace the CA and break running containers until every image is rebuilt.
|
My only concern is if updating |
Fair question, I worried about the same thing, so I deliberately kept the blast radius as small as possible. The CA is untouched. That was the main design decision here. Running The LDAP cert has exactly one consumer. The new certificate is a strict superset of the old one:
The only behavioural change is in the direction of working more often, not less: previously a client that requires SAN and ignores CN (which is what RFC 6125 and most modern TLS stacks do) had nothing to match against. Verified against a live server, by importing the new cert into the running ldap container with the same and the failover suite, which runs over StartTLS with On the four years point, I read that as the certs simply not having needed a change, rather than them being fragile. The old one was valid until 2041 and the new one until 2046, both issued by the same CA. One thing worth stating plainly: this has no effect until |
The cert was CN=master.ldap.test with no subjectAltName, so StartTLS to the master2.ldap.test alias failed hostname verification under ldap_tls_reqcert = demand.
gen-certs.sh now builds a per-service SAN list, each certificate getting its own hostname plus any aliases. Only master.ldap.test.crt is regenerated, re-signed with the existing CA and key; a full run would also replace the CA and break running containers until every image is rebuilt.