Hi,
I am deploying the Java FTP/s client library on a WebSphere application server. I have the same library deployed on a JBoss App Server, and SSL Handshake is successful. However, on WebSphere, I am getting the following:
2009-07-30 16:42:42,183 INFO [puretls] PureTLS debug level=0
2009-07-30 16:42:42,185 DEBUG [SSLFTPClient] Setting custom validator to com.enterprisedt.net.ftp.ssl.SSLFTPStandardValidator
2009-07-30 16:42:42,429 DEBUG [SSLFTPClient] Setting custom validator to com.enterprisedt.net.ftp.ssl.SSLFTPStandardValidator
2009-07-30 16:42:42,429 DEBUG [SSLFTPClient] Created explicit FTPS client.
2009-07-30 16:42:42,429 DEBUG [SSLFTPClient] Connecting to /192.168.1.102:21
2009-07-30 16:42:42,433 DEBUG [StreamSocketFactory] Connecting to 192.168.1.102:21 via standard socket
2009-07-30 16:42:42,444 DEBUG [FTPControlSocket] 220 QAWEB07.qa.com X2 WS_FTP Server 5.0.4 (3449386031)
2009-07-30 16:42:42,445 DEBUG [SSLFTPControlSocket] DISABLE_CONTROL_SSL_CLOSURE=false
2009-07-30 16:42:42,445 DEBUG [SSLFTPControlSocket] DISABLE_CONTROL_WAIT_ON_CLOSE=true
2009-07-30 16:42:42,445 DEBUG [SSLFTPControlSocket] ALLOW_BASIC_CONSTRAINTS_IN_NON_CA=false
2009-07-30 16:42:42,445 DEBUG [FTPControlSocket] ---> AUTH TLS
2009-07-30 16:42:42,933 DEBUG [FTPControlSocket] 234 SSL enabled and waiting for negotiation
2009-07-30 16:42:42,935 DEBUG [SSLFTPControlSocket] Starting SSL handshake on control socket
2009-07-30 16:42:43,028 DEBUG [X509Cert] verify: alg=SHA-1/RSA/PKCS#1,provider=CryptixEDT
2009-07-30 16:42:43,030 ERROR [X509Cert] verify
java.security.SignatureException: SHA-1/RSA/PKCS#1: Not initialized
at com.enterprisedt.cryptix.provider.rsa.Any_RSA_PKCS1Signature.engineUpdate(Unknown Source)
at java.security.Signature$SignatureImpl.engineUpdate(Unknown Source)
at java.security.Signature.update(Unknown Source)
at com.enterprisedt.net.puretls.cert.X509Cert.verify(Unknown Source)
at com.enterprisedt.net.puretls.cert.X509Cert.verifyCertChain(Unknown Source)
at com.enterprisedt.net.puretls.n.B(Unknown Source)
at com.enterprisedt.net.puretls.Z.B(Unknown Source)
at com.enterprisedt.net.puretls.n.E(Unknown Source)
at com.enterprisedt.net.puretls.i.G(Unknown Source)
at com.enterprisedt.net.puretls.SSLSocket.handshake(Unknown Source)
at com.enterprisedt.net.ftp.ssl.SSLFTPControlSocket.H(Unknown Source)
at com.enterprisedt.net.ftp.ssl.SSLFTPClient.auth(Unknown Source)
2009-07-30 16:42:43,041 DEBUG [SSLFTPControlSocket] Caught: com.enterprisedt.net.puretls.SSLThrewAlertException
2009-07-30 16:42:43,041 DEBUG [SSLFTPControlSocket] Inner throwable = com.enterprisedt.net.puretls.cert.CertificateVerifyException
2009-07-30 16:42:43,041 DEBUG [SSLFTPControlSocket] Rethrowing as SSLFTPCertificateException
2009-07-30 16:42:43,041 DEBUG [SSLFTPClient] Forcing disconnect
2009-07-30 16:42:43,042 WARN [FTPClient] cancelTransfer() called
Please let me know how to resolve this.