qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Rudyy (JIRA)" <j...@apache.org>
Subject [jira] [Created] (QPID-6354) Non java keystore exceptions about incorrect format of private key or certificates are swallowed and ignored
Date Tue, 03 Feb 2015 14:14:34 GMT
Alex Rudyy created QPID-6354:
--------------------------------

             Summary: Non java keystore exceptions about incorrect format of private key or
certificates are swallowed and ignored
                 Key: QPID-6354
                 URL: https://issues.apache.org/jira/browse/QPID-6354
             Project: Qpid
          Issue Type: Bug
          Components: Java Broker
    Affects Versions: 0.30
            Reporter: Alex Rudyy
             Fix For: 0.31


If private key is provided in incorrect format that keystore is created and exception is ignored.
On broker opening the following is logged
{noformat}
2015-02-02 13:55:29,635 ERROR [main] (security.NonJavaKeyStoreImpl) - Error attempting to
create KeyStore from private key and certificates
java.security.spec.InvalidKeySpecException: Unable to parse key as PKCS#1 format
        at org.apache.qpid.server.security.NonJavaKeyStoreImpl.getRSAKeySpec(NonJavaKeyStoreImpl.java:426)
        at org.apache.qpid.server.security.NonJavaKeyStoreImpl.readPrivateKey(NonJavaKeyStoreImpl.java:395)
        at org.apache.qpid.server.security.NonJavaKeyStoreImpl.updateKeyManagers(NonJavaKeyStoreImpl.java:271)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.qpid.server.model.AbstractConfiguredObject.automatedSetValue(AbstractConfiguredObject.java:396)
        at org.apache.qpid.server.model.AbstractConfiguredObject.resolveAutomatedAttribute(AbstractConfiguredObject.java:874)
        at org.apache.qpid.server.model.AbstractConfiguredObject.onResolve(AbstractConfiguredObject.java:829)
        at org.apache.qpid.server.model.AbstractConfiguredObject.doResolution(AbstractConfiguredObject.java:689)
        at org.apache.qpid.server.model.AbstractConfiguredObject$5.performAction(AbstractConfiguredObject.java:701)
        at org.apache.qpid.server.model.AbstractConfiguredObject.applyToChildren(AbstractConfiguredObject.java:753)
        at org.apache.qpid.server.model.AbstractConfiguredObject.doResolution(AbstractConfiguredObject.java:691)
        at org.apache.qpid.server.model.AbstractConfiguredObject.open(AbstractConfiguredObject.java:437)
        at org.apache.qpid.server.model.AbstractSystemConfig.activate(AbstractSystemConfig.java:238)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.qpid.server.model.AbstractConfiguredObject.attainState(AbstractConfiguredObject.java:910)
        at org.apache.qpid.server.model.AbstractConfiguredObject.doAttainState(AbstractConfiguredObject.java:626)
        at org.apache.qpid.server.model.AbstractConfiguredObject.open(AbstractConfiguredObject.java:440)
        at org.apache.qpid.server.Broker.startupImpl(Broker.java:193)
        at org.apache.qpid.server.Broker.access$000(Broker.java:53)
        at org.apache.qpid.server.Broker$1.run(Broker.java:139)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:415)
        at org.apache.qpid.server.Broker.startup(Broker.java:134)
        at org.apache.qpid.server.Main.startBroker(Main.java:474)
        at org.apache.qpid.server.Main.execute(Main.java:315)
        at org.apache.qpid.server.Main.<init>(Main.java:148)
        at org.apache.qpid.server.Main.main(Main.java:139)
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message