Hello!
I trying to run ftps session using example for server and client certificates. Certificates are valid. Whats wrong?.
C:\distr\EdtftpJPro\edtftpj-pro-7.0.0\examples\howto\use_FTPS_with_client_server_validation>run.bat 192.168.1.2 username
password C:\lavl\VICA410rootsubroot.txt C:\lavl\client.crt ""
JH="C:\Program Files\Java\jdk1.8.0_291"
INFO [UseFTPSWithClientServerValidation] 18 ??? 2021 11:00:23.751 : Creating FTPS (explicit) client
INFO [SSLFTPClient] 18 ??? 2021 11:00:23.876 : edtFTPj - PRO version
INFO [LicensePropertiesBase] 18 ??? 2021 11:00:23.938 : Licence expiry date: 14 ??? 2021
INFO [LicensePropertiesBase] 18 ??? 2021 11:00:23.938 : Trial licence
INFO [puretls] 18 ??? 2021 11:00:24.282 : PureTLS debug level=0
INFO [UseFTPSWithClientServerValidation] 18 ??? 2021 11:00:24.313 : Setting configuration flags
INFO [UseFTPSWithClientServerValidation] 18 ??? 2021 11:00:24.313 : Setting remote host
INFO [UseFTPSWithClientServerValidation] 18 ??? 2021 11:00:24.329 : Loading server certificate from C:\lavl\VICA410roots
ubroot.txt
INFO [cryptix] 18 ??? 2021 11:00:24.391 : GLOBAL_TRACE=false
INFO [cryptix] 18 ??? 2021 11:00:24.391 : GLOBAL_DEBUG=false
INFO [cryptix] 18 ??? 2021 11:00:24.407 : GLOBAL_DEBUG_SLOW=false
INFO [UseFTPSWithClientServerValidation] 18 ??? 2021 11:00:24.548 : Disable host-name checking (only recommended when te
sting)
INFO [UseFTPSWithClientServerValidation] 18 ??? 2021 11:00:24.563 : Loading client key and certificate from C:\lavl\clie
nt.crt with password
INFO [UseFTPSWithClientServerValidation] 18 ??? 2021 11:00:24.594 : Connecting to server 172.22.3.6
INFO [UseFTPSWithClientServerValidation] 18 ??? 2021 11:00:24.735 : Switching to FTPS (explicit mode)
com.enterprisedt.net.puretls.SSLHandshakeFailedException: com.enterprisedt.net.puretls.SSLPrematureCloseException: Short
read
at com.enterprisedt.net.puretls.j.a(SSLConn.java:164)
at com.enterprisedt.net.puretls.SSLSocket.handshake(SSLSocket.java:261)
at com.enterprisedt.net.ftp.ssl.SSLFTPControlSocket.c(SSLFTPControlSocket.java:322)
at com.enterprisedt.net.ftp.ssl.SSLFTPClient.auth(SSLFTPClient.java:1569)
at UseFTPSWithClientServerValidation.main(UseFTPSWithClientServerValidation.java:84)