Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Vivi2
Contributor III
Contributor III

[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
Labels (3)
1 Solution

Accepted Solutions
Vivi2
Contributor III
Contributor III
Author

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. 
0683p000009MBhZ.png

View solution in original post

3 Replies
Anonymous
Not applicable

Hi,
Are you using tsetkeystore component to set the authentication? Could you please show us your current job design?
Best regards
Sabrina
Vivi2
Contributor III
Contributor III
Author

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. 
0683p000009MBhZ.png
davechurchley
Contributor
Contributor

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