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

Claus Ibsen resolved CAMEL-27670.
---------------------------------
    Resolution: Fixed

> camel-asterisk - Add TLS option for the AMI connection
> ------------------------------------------------------
>
>                 Key: CAMEL-27670
>                 URL: https://issues.apache.org/jira/browse/CAMEL-27670
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-asterisk
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 4.24.0
>
>
> {{AsteriskConnection.connect()}} creates the Asterisk Manager Interface (AMI) 
> connection with {{ManagerConnectionFactory.createManagerConnection()}}, which 
> always opens a plain TCP socket. The component has no option to use TLS, so 
> the AMI username and secret, and all actions and events, are sent in clear 
> text, also when the Asterisk server accepts AMI over TLS ({{tlsenable}} and 
> {{tlsbindaddr}} in {{manager.conf}}).
> asterisk-java 3.42.2 supports TLS: 
> {{ManagerConnectionFactory.createSecureManagerConnection()}} / 
> {{DefaultManagerConnection.setSsl(true)}} open the socket with the default 
> {{SSLSocketFactory}} of the JVM.
> h4. Proposed change
> * Add an {{ssl}} endpoint option (boolean, default {{false}}, label 
> {{security}}).
> * When it is {{true}}, {{AsteriskConnection}} creates the connection with 
> {{createSecureManagerConnection()}}, for both the consumer and the producer.
> * Document that the trust store of the JVM ({{javax.net.ssl.trustStore}}) is 
> used, as asterisk-java does not take a custom SSL context.
> The default stays plain TCP, so nothing changes for existing routes.
> _Claude Code on behalf of Claus Ibsen_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to