You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Alex Rudyy (JIRA)" <ji...@apache.org> on 2018/10/30 16:42:00 UTC

[jira] [Assigned] (QPID-8254) [Broker-J] Illegal ascii characters are used in keystore passwords

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

Alex Rudyy reassigned QPID-8254:
--------------------------------

    Assignee: Alex Rudyy

> [Broker-J] Illegal ascii characters are used in keystore passwords
> ------------------------------------------------------------------
>
>                 Key: QPID-8254
>                 URL: https://issues.apache.org/jira/browse/QPID-8254
>             Project: Qpid
>          Issue Type: Bug
>          Components: Broker-J
>    Affects Versions: qpid-java-6.0.8, qpid-java-6.1.7, qpid-java-broker-7.0.6
>            Reporter: Alex Rudyy
>            Assignee: Alex Rudyy
>            Priority: Major
>             Fix For: qpid-java-broker-7.1.0, qpid-java-broker-7.0.7
>
>
> Illegal keystore password characters are used on creation of {{AutoGeneratedSelfSignedKeyStoreImpl}} and {{NonJavaKeyStoreImpl}}:
> {code}
> char[] chars = new char[64];
> RANDOM.nextBytes(bytes);
> StandardCharsets.US_ASCII.decode(ByteBuffer.wrap(bytes)).get(chars);
> inMemoryKeyStore.load(null, chars);
> inMemoryKeyStore.setKeyEntry("1", _privateKey, chars, certs);
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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