mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Valery Kharseko
27 mins ago d361f42f2fccf7b6f4e23691d0a40f17969e2ec1
refs
author Valery Kharseko <vharseko@3a-systems.ru>
Saturday, November 28, 2026 10:48 +0100
committer GitHub <noreply@github.com>
Saturday, November 28, 2026 10:48 +0100
commitd361f42f2fccf7b6f4e23691d0a40f17969e2ec1
tree dc8fbe9209178268774e789012317181f8167b35 tree | zip | gz
parent 93f9b0e99ae3322f4d4be7cbd996130a7a2adf18 view | diff
[#278] Publish missing ADS instance certificates after replication starts (#1338)

## Summary

OpenDJ publishes its instance certificate in `cn=admin data` during
crypto initialization, before the replication provider can record the
ADD. The certificate entry created at startup therefore stays local.
This was reported during certificate rotation in [discussion
#278](https://github.com/OpenIdentityPlatform/OpenDJ/discussions/278).

Keep the local certificate and secret-key initialization early. Publish
a missing canonical ADS entry through an ordinary ADD after replication
starts. If the ADS domain has no usable session, complete startup and
retry when a session becomes available. This requires the peers to
already trust the certificate.

## Verification

The regression test starts the directory server with its ADS replication
server unavailable, then brings up the replication server and verifies
that a peer receives the canonical DN and the original DER certificate.
The regression, crypto manager, and embedded server suites ran on JDK 21
with 71 tests passing.
4 files modified
1 files added
235 ■■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/core/DirectoryServer.java 59 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/crypto/CryptoManagerImpl.java 53 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/crypto/CryptoManagerSync.java 27 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/replication/service/ReplicationDomain.java 2 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/replication/InstanceKeyStartupReplicationTest.java 94 ●●●●● diff | view | raw | blame | history