Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-8624

[Broker-J] Unable to auto generate self signed certificate on Java17

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • qpid-java-broker-9.0.0
    • qpid-java-broker-9.1.0
    • Broker-J
    • None

    Description

      When trying to autogenerate a keystore with self signed certificate on java 17 environment following error is thrown: 

      org.apache.qpid.server.configuration.IllegalConfigurationException: Unable to construct keystore 
      at org.apache.qpid.server.security.AutoGeneratedSelfSignedKeyStoreImpl.generatePrivateKeyAndCertificate(AutoGeneratedSelfSignedKeyStoreImpl.java:296) 
      at org.apache.qpid.server.security.AutoGeneratedSelfSignedKeyStoreImpl.postResolve(AutoGeneratedSelfSignedKeyStoreImpl.java:169) 
      
      Caused by: java.lang.IllegalAccessException: class org.apache.qpid.server.transport.network.security.ssl.SSLUtil cannot access class sun.security.tools.keytool.CertAndKeyGen (in module java.base) because module java.base does not export sun.security.tools.keytool to unnamed module @6b37576e at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Unknown Source) at java.base/java.lang.reflect.AccessibleObject.checkAccess(Unknown Source)

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            daniel.kirilyuk Daniil Kirilyuk
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: