[resolved] Error in TFtpConnection - FTPS

Four Stars

[resolved] Error in TFtpConnection - FTPS

Hi, 
I'm trying to configure a FTPS explicit connection, I've generated a keystore with Portecle. 
Now I have this error : 
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found
        at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
        at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1884)
        at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:276)
        at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:270)
        at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1341)
        at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:153)
        at sun.security.ssl.Handshaker.processLoop(Handshaker.java:868)
        at sun.security.ssl.Handshaker.process_record(Handshaker.java:804)
        at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1016)
        at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1312)
        at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:702)
        at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:122)
        at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)
        at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291)
        at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:295)
        at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141)
        at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229)
        at it.sauronsoftware.ftp4j.NVTASCIIWriter.writeLine(NVTASCIIWriter.java:133)
        at it.sauronsoftware.ftp4j.FTPCommunicationChannel.sendFTPCommand(FTPCommunicationChannel.java:165)
        at it.sauronsoftware.ftp4j.FTPClient.login(FTPClient.java:1240)
        at it.sauronsoftware.ftp4j.FTPClient.login(FTPClient.java:1186)
        at test.test.test.tFTPConnection_1Process(test.java:1194)
        at test.test.test.tJava_2Process(test.java:1077)
        at test.test.test.tFileList_1Process(test.java:949)
        at test.test.test.tJava_1Process(test.java:558)
        at test.test.test.runJobInTOS(test.java:2366)
        at test.test.test.main(test.java:2247)
Caused by: sun.security.validator.ValidatorException: No trusted certificate found
        at sun.security.validator.SimpleValidator.buildTrustedChain(SimpleValidator.java:384)
        at sun.security.validator.SimpleValidator.engineValidate(SimpleValidator.java:134)
        at sun.security.validator.Validator.validate(Validator.java:260)
        at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:326)
        at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:231)
        at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:126)
        at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1323)
        ... 22 more
********  Connexion au serveur FTP résussie
java.lang.IllegalStateException: Client not authenticated
        at it.sauronsoftware.ftp4j.FTPClient.changeDirectory(FTPClient.java:1632)
        at test.test.test.tFTPPut_1Process(test.java:1526)
        at test.test.test.tJava_3Process(test.java:1446)
        at test.test.test.tFTPConnection_1Process(test.java:1236)
        at test.test.test.tJava_2Process(test.java:1077)
        at test.test.test.tFileList_1Process(test.java:949)
        at test.test.test.tJava_1Process(test.java:558)
        at test.test.test.runJobInTOS(test.java:2366)
        at test.test.test.main(test.java:2247)
Exception in component tFTPPut_1
java.lang.IllegalStateException: Client not authenticated
        at it.sauronsoftware.ftp4j.FTPClient.listNames(FTPClient.java:2321)
        at test.test.test.tFTPPut_1Process(test.java:1621)
        at test.test.test.tJava_3Process(test.java:1446)
        at test.test.test.tFTPConnection_1Process(test.java:1236)
        at test.test.test.tJava_2Process(test.java:1077)
        at test.test.test.tFileList_1Process(test.java:949)
        at test.test.test.tJava_1Process(test.java:558)
        at test.test.test.runJobInTOS(test.java:2366)
        at test.test.test.main(test.java:2247)
Any help please. Thanks in advance

Accepted Solutions
Four Stars

Re: [resolved] Error in TFtpConnection - FTPS

Hello, 
no, I did not use tsetkeystore but I've resolved by importing the certificate in the keystore generated. Then I used it in the TFtpconnection. 
But, how to use tkeystore? Here the job: 
Thanks. 

All Replies
Moderator

Re: [resolved] Error in TFtpConnection - FTPS

Hi,
Are you using tsetkeystore component to set the authentication? Could you please show us your current job design?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Four Stars

Re: [resolved] Error in TFtpConnection - FTPS

Hello, 
no, I did not use tsetkeystore but I've resolved by importing the certificate in the keystore generated. Then I used it in the TFtpconnection. 
But, how to use tkeystore? Here the job: 
Thanks. 
Highlighted
One Star

Re: [resolved] Error in TFtpConnection - FTPS

Is there an example of how to use tSetKeystore for this purpose?
Thanks.