Uploaded image for project: 'AMQ Streams'
  1. AMQ Streams
  2. ENTMQST-4466

[QE] Improve the compatibility of SystemTestCertAndKeyBuilder with Java 17

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Undefined Undefined
    • 2.5.0.GA
    • None
    • None
    • None

      When generating new CA and server certificates with SystemTestCertAndKeyBuilder, the method getSubjectDN which is deprecated in Java 17 is used:

      this.issuer = new X500Name(caCert.getCertificate().getSubjectDN().getName());

      Java 17 suggests to use getSubjectX500Principal instead which worked in all other cases. However, the BouncyCastle library used by SystemTestCertAndKeyBuilder does seem to be able to handle it and the resulting certificate chain does not work (while on the first look it looks fine, when running it through OpenSSL it does not recognize the certificates in the chain as signing each other). Therefore the code currently keeps using the deprecated getSubjectDN. But ideally, we should fix this to make this more future proof and not use deprecated methods.

      Created by Strimzi#7698

              morsak Maros Orsak
              scholzj JAkub Scholz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: