[ https://issues.apache.org/jira/browse/CAMEL-8707?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gururaja Kowlali updated CAMEL-8707: ------------------------------------ Description: We are evaluating on using apache camel + jsmpp for sending smses. apache camel version: 2.15.1 jsmpp version: 2.1.1 smpp works fine with proxy, but smpps with doesn't work. Route definition is as follows: from(direct:start) .to(smpps://user@smschost:smscport?password=********&httpProxyHost=proxyhostname&httpProxyPort=proxyport®isteredDelivery=1&lazySessionCreation=true) from(smpps://user@smschost:smscport?password=********&httpProxyHost=proxyhostname&httpProxyPort=proxyport®isteredDelivery=1) .to(direct.result) When using smpps, we are getting the following exception: Failed to start camel Context java.io.IOException: SmppConnectionFactory: Unrecognized SSL message, plaintext connection? at org.apache.camel.component.smpp.SmppConnectionFactory.createConnection(SmppConnectionFactory.java:97) at org.jsmpp.session.SMPPSession.connectAndBind(SMPPSession.java:221) at org.jsmpp.session.SMPPSession.connectAndBind(SMPPSession.java:200) at org.apache.camel.component.smpp.SmppConsumer.createSession(SmppConsumer.java:95) at org.apache.camel.component.smpp.SmppConsumer.doStart(SmppConsumer.java:84) In SmppConnectionFactory.createConnection(), for smpps, there is a HTTP connect in SSL Socket. We should be tunnelling SSL through HTTP, as given below: https://docs.oracle.com/javase/7/docs/technotes/guides/security/jsse/samples/sockets/client/SSLSocketClientWithTunneling.java was: Hi, We are evaluating on using apache camel + jsmpp for sending smses. apache camel version: 2.15.1 jsmpp version: 2.1.1 smpp works fine with proxy, but smpps with doesn't work. Route definition is as follows: from(direct:start) .to(smpps://user@smschost:smscport?password=********&httpProxyHost=proxyhostname&httpProxyPort=proxyport®isteredDelivery=1&lazySessionCreation=true) from(smpps://user@smschost:smscport?password=********&httpProxyHost=proxyhostname&httpProxyPort=proxyport®isteredDelivery=1) .to(direct.result) When using smpps, we are getting the following exception: Failed to start camel Context java.io.IOException: SmppConnectionFactory: Unrecognized SSL message, plaintext connection? at org.apache.camel.component.smpp.SmppConnectionFactory.createConnection(SmppConnectionFactory.java:97) at org.jsmpp.session.SMPPSession.connectAndBind(SMPPSession.java:221) at org.jsmpp.session.SMPPSession.connectAndBind(SMPPSession.java:200) at org.apache.camel.component.smpp.SmppConsumer.createSession(SmppConsumer.java:95) at org.apache.camel.component.smpp.SmppConsumer.doStart(SmppConsumer.java:84) In SmppConnectionFactory.createConnection(), for smpps, there is a HTTP connect in SSL Socket. We should be tunnelling SSL through HTTP, as given below: https://docs.oracle.com/javase/7/docs/technotes/guides/security/jsse/samples/sockets/client/SSLSocketClientWithTunneling.java Regards, Guru > camel-smpp: smpps doesn't work over proxy > ----------------------------------------- > > Key: CAMEL-8707 > URL: https://issues.apache.org/jira/browse/CAMEL-8707 > Project: Camel > Issue Type: Bug > Components: camel-smpp > Affects Versions: 2.15.1 > Reporter: Gururaja Kowlali > > We are evaluating on using apache camel + jsmpp for sending smses. > apache camel version: 2.15.1 > jsmpp version: 2.1.1 > smpp works fine with proxy, but smpps with doesn't work. > Route definition is as follows: > from(direct:start) > .to(smpps://user@smschost:smscport?password=********&httpProxyHost=proxyhostname&httpProxyPort=proxyport®isteredDelivery=1&lazySessionCreation=true) > from(smpps://user@smschost:smscport?password=********&httpProxyHost=proxyhostname&httpProxyPort=proxyport®isteredDelivery=1) > .to(direct.result) > When using smpps, we are getting the following exception: > Failed to start camel Context > java.io.IOException: SmppConnectionFactory: Unrecognized SSL message, > plaintext connection? > at > org.apache.camel.component.smpp.SmppConnectionFactory.createConnection(SmppConnectionFactory.java:97) > at > org.jsmpp.session.SMPPSession.connectAndBind(SMPPSession.java:221) > at > org.jsmpp.session.SMPPSession.connectAndBind(SMPPSession.java:200) > at > org.apache.camel.component.smpp.SmppConsumer.createSession(SmppConsumer.java:95) > at > org.apache.camel.component.smpp.SmppConsumer.doStart(SmppConsumer.java:84) > In SmppConnectionFactory.createConnection(), for smpps, there is a HTTP > connect in SSL Socket. > We should be tunnelling SSL through HTTP, as given below: > https://docs.oracle.com/javase/7/docs/technotes/guides/security/jsse/samples/sockets/client/SSLSocketClientWithTunneling.java -- This message was sent by Atlassian JIRA (v6.3.4#6332)