[ 
https://issues.apache.org/jira/browse/AMQ-8550?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17517599#comment-17517599
 ] 

ASF subversion and git services commented on AMQ-8550:
------------------------------------------------------

Commit 4ae145352b4962018b0ccb9b1eb404728523797e in activemq's branch 
refs/heads/main from Christopher L. Shannon
[ https://gitbox.apache.org/repos/asf?p=activemq.git;h=4ae145352 ]

Merge pull request #812 from cshannon/AMQ-8550

AMQ-8550 - Check for null keystore/truststore passwords

> ActiveMQSslConnectionFactory: Check for null SSL Keystore and Truststore 
> password
> ---------------------------------------------------------------------------------
>
>                 Key: AMQ-8550
>                 URL: https://issues.apache.org/jira/browse/AMQ-8550
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMS client
>            Reporter: Andreas Gorges
>            Assignee: Christopher L. Shannon
>            Priority: Major
>             Fix For: 5.17.1, 5.18.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> When you assign a Truststore without a password the method 
> {color:#000000}ActiveMQSslConnectionFactory.{color}{color:#00627a}createTrustManager
>  throws a NullPointer exception in Line 135:
> {color}
>  
> {code:java}
> trustedCertStore.load(tsStream, trustStorePassword.toCharArray()); {code}
>  
> {color:#00627a}Please change the code to:{color}
> {code:java}
> char[] password = null;
> if (trustStorePassword != null) {
>      password = trustStorePassword.toCharArray();
> }
> trustedCertStore.load(tsStream, password);
>   {code}
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to