You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Martin Lichtin (Jira)" <ji...@apache.org> on 2020/12/11 09:09:00 UTC

[jira] [Created] (KARAF-6954) JMXRMI - error 'Can't re-init JMXConnectorServer with SSL enabled when register a keystore:connector:name=rmi' when trying to enable SSL

Martin Lichtin created KARAF-6954:
-------------------------------------

             Summary: JMXRMI - error 'Can't re-init JMXConnectorServer with SSL enabled when register a keystore:connector:name=rmi' when trying to enable SSL
                 Key: KARAF-6954
                 URL: https://issues.apache.org/jira/browse/KARAF-6954
             Project: Karaf
          Issue Type: Bug
    Affects Versions: 4.2.9
            Reporter: Martin Lichtin


 
{noformat}
 ERROR | activator-1-thread-1     | Activator                        | .management.internal.Activator$2  195 | 38 - org.apache.karaf.management.server - 4.2.9 | Can't re-init JMXConnectorServer with SSL enabled when register a keystore:connector:name=rmi{noformat}
occurs.
 The keystore is instantiated using this code:
{noformat}
ResourceKeystoreInstance keyStoreInstance = new ResourceKeystoreInstance();
keyStoreInstance.setName("jmx");
keyStoreInstance.setPath("file:jmx.jks");
keyStoreInstance.setRank(1);
keyStoreInstance.setKeystorePassword("mypass");
keyStoreInstance.setKeyPasswords("karaf=mypass");
bundleContext.registerService(KeystoreInstance.class, keyStoreInstance, null);
{noformat}
and {{org.apache.karaf.management.cfg}} with settings:
{noformat}
secured = true
secureAlgorithm = default
secureProtocol = TLS
keyStore = jmx
keyAlias = karaf
trustStore = jmx
{noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)