[jira] [Updated] (PROTON-187) Proton-j SSL implement should accept client certificate from a private key of a keypair

2012-12-14 Thread Keith Wall (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Keith Wall updated PROTON-187:
--

Affects Version/s: (was: 0.2)

> Proton-j SSL implement should accept client certificate from a private key of 
> a keypair 
> 
>
> Key: PROTON-187
> URL: https://issues.apache.org/jira/browse/PROTON-187
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-j
>Reporter: Keith Wall
>Assignee: Philip Harvey
> Fix For: 0.3
>
>
> Work on PROTON-182 exposed the following defect in proton-j.
> {noformat}
> proton_tests.ssl.SslTest.test_allow_unsecured_client 
> java.lang.ClassCastException: java.security.KeyPair 
> cannot be cast to java.security.Key
>   at 
> org.apache.qpid.proton.engine.impl.ssl.SslEngineFacadeFactory.createKeyStoreFrom(SslEngineFacadeFactory.java:188)
>   at 
> org.apache.qpid.proton.engine.impl.ssl.SslEngineFacadeFactory.createSslContext(SslEngineFacadeFactory.java:126)
>   at 
> org.apache.qpid.proton.engine.impl.ssl.SslEngineFacadeFactory.createSslEngine(SslEngineFacadeFactory.java:94)
>   at 
> org.apache.qpid.proton.engine.impl.ssl.SslEngineFacadeFactory.createSslEngineFacade(SslEngineFacadeFactory.java:86)
>   at 
> org.apache.qpid.proton.engine.impl.ssl.SimpleSslTransportWrapper.(SimpleSslTransportWrapper.java:95)
>   at 
> org.apache.qpid.proton.engine.impl.ssl.SimpleSslTransportWrapper.(SimpleSslTransportWrapper.java:84)
>   at 
> org.apache.qpid.proton.engine.impl.ssl.SslImpl$UnsecureClientAwareTransportWrapper.initTransportWrapperOnFirstIO(SslImpl.java:209)
>   at 
> org.apache.qpid.proton.engine.impl.ssl.SslImpl$UnsecureClientAwareTransportWrapper.output(SslImpl.java:175)
>   at 
> org.apache.qpid.proton.engine.impl.TransportImpl.output(TransportImpl.java:174)
>   at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>   at java.lang.reflect.Method.invoke(Method.java:601)
>   at 
> org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:186)
>   at 
> org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:204)
>   at org.python.core.PyObject.__call__(PyObject.java:441)
> {noformat}
> The implementation (SslEngineFacadeFactory) currently requires that the 
> private key file provide a Key.  It ignores that possibility that the PEM may 
> legitimately contain a key-pair, containing the private-key.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (PROTON-187) Proton-j SSL implement should accept client certificate from a private key of a keypair

2012-12-14 Thread Keith Wall (JIRA)

 [ 
https://issues.apache.org/jira/browse/PROTON-187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Keith Wall updated PROTON-187:
--

Fix Version/s: 0.3
Affects Version/s: 0.2

> Proton-j SSL implement should accept client certificate from a private key of 
> a keypair 
> 
>
> Key: PROTON-187
> URL: https://issues.apache.org/jira/browse/PROTON-187
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: proton-j
>Affects Versions: 0.2
>Reporter: Keith Wall
>Assignee: Philip Harvey
> Fix For: 0.3
>
>
> Work on PROTON-182 exposed the following defect in proton-j.
> {noformat}
> proton_tests.ssl.SslTest.test_allow_unsecured_client 
> java.lang.ClassCastException: java.security.KeyPair 
> cannot be cast to java.security.Key
>   at 
> org.apache.qpid.proton.engine.impl.ssl.SslEngineFacadeFactory.createKeyStoreFrom(SslEngineFacadeFactory.java:188)
>   at 
> org.apache.qpid.proton.engine.impl.ssl.SslEngineFacadeFactory.createSslContext(SslEngineFacadeFactory.java:126)
>   at 
> org.apache.qpid.proton.engine.impl.ssl.SslEngineFacadeFactory.createSslEngine(SslEngineFacadeFactory.java:94)
>   at 
> org.apache.qpid.proton.engine.impl.ssl.SslEngineFacadeFactory.createSslEngineFacade(SslEngineFacadeFactory.java:86)
>   at 
> org.apache.qpid.proton.engine.impl.ssl.SimpleSslTransportWrapper.(SimpleSslTransportWrapper.java:95)
>   at 
> org.apache.qpid.proton.engine.impl.ssl.SimpleSslTransportWrapper.(SimpleSslTransportWrapper.java:84)
>   at 
> org.apache.qpid.proton.engine.impl.ssl.SslImpl$UnsecureClientAwareTransportWrapper.initTransportWrapperOnFirstIO(SslImpl.java:209)
>   at 
> org.apache.qpid.proton.engine.impl.ssl.SslImpl$UnsecureClientAwareTransportWrapper.output(SslImpl.java:175)
>   at 
> org.apache.qpid.proton.engine.impl.TransportImpl.output(TransportImpl.java:174)
>   at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>   at java.lang.reflect.Method.invoke(Method.java:601)
>   at 
> org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:186)
>   at 
> org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:204)
>   at org.python.core.PyObject.__call__(PyObject.java:441)
> {noformat}
> The implementation (SslEngineFacadeFactory) currently requires that the 
> private key file provide a Key.  It ignores that possibility that the PEM may 
> legitimately contain a key-pair, containing the private-key.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira