Hi I'm trying my hand at using FTP over SSL. At some point I'd like to use both server and and client authentication via certificates. I have configured a server that has a certificate. This works fine when I log into it using a normal FTP client; the certificate pops up and I must accept it etc.
I've set up a route like this: <route> <from uri="ftps:192.168.1.48:21/download?username=dmr&password=dmr123&consumer.delay=5s&securityProtocol=SSL&isImplicit=false&consumer.initialDelay=5000" /> <to uri="file:test_data" /> </route> Where I get this exception which I don't really know how to interpret: 2010-07-27 11:04:41,441 DEBUG [Camel Thread 0 - ftps://192.168.1.48:21/download] [org.apache.camel.component.file.remote.FtpConsumer]: Not connected/logged in, connecting to: ftps://d...@192.168.1.48:21 2010-07-27 11:05:25,908 DEBUG [Camel Thread 0 - ftps://192.168.1.48:21/download] [org.apache.camel.component.file.remote.FtpConsumer]: Could not connect to: Endpoint[ftps://192.168.1.48:21/download?consumer.delay=5s&consumer.initialDelay=5000&isImplicit=false&password=dmr123&securityProtocol=SSL&username=dmr]. Will try to recover. org.apache.camel.component.file.GenericFileOperationFailedException: File operation failed: 234 AUTH TLS successful Unrecognized SSL message, plaintext connection?. Code: 234 at org.apache.camel.component.file.remote.FtpOperations.connect(FtpOperations.java:107) at org.apache.camel.component.file.remote.FtpsOperations.connect(FtpsOperations.java:40) at org.apache.camel.component.file.remote.RemoteFileConsumer.connectIfNecessary(RemoteFileConsumer.java:123) at org.apache.camel.component.file.remote.RemoteFileConsumer.recoverableConnectIfNecessary(RemoteFileConsumer.java:100) at org.apache.camel.component.file.remote.RemoteFileConsumer.prePollCheck(RemoteFileConsumer.java:50) at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:70) at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:98) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(InputRecord.java:523) at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:355) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:789) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1120) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1147) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1131) at org.apache.commons.net.ftp.FTPSClient.sslNegotiation(FTPSClient.java:240) at org.apache.commons.net.ftp.FTPSClient._connectAction_(FTPSClient.java:171) at org.apache.commons.net.SocketClient.connect(SocketClient.java:178) at org.apache.camel.component.file.remote.FtpOperations.connect(FtpOperations.java:91) ... 15 more -- View this message in context: http://camel.465427.n5.nabble.com/FTPS-Unrecognized-SSL-message-plaintext-connection-Code-234-tp2255594p2255594.html Sent from the Camel - Users mailing list archive at Nabble.com.