Discuss (FTP) and (SFTP, FTPS and SCP), our Java file transfer clients.

Applet will not work with SFTP

no avatar
User

RLord321

Posts

14

Joined

Sat Aug 26, 2006 11:13 am

Applet will not work with SFTP

by RLord321 » Sun Aug 27, 2006 10:43 pm

no avatar
User

EDT Support

Posts

905

Joined

Mon Apr 26, 2004 3:03 pm

by EDT Support » Mon Aug 28, 2006 12:11 am

no avatar
User

RLord321

Posts

14

Joined

Sat Aug 26, 2006 11:13 am

by RLord321 » Mon Aug 28, 2006 12:42 am

no avatar
User

RLord321

Posts

14

Joined

Sat Aug 26, 2006 11:13 am

by RLord321 » Mon Aug 28, 2006 1:05 am

no avatar
User

EDT Support

Posts

905

Joined

Mon Apr 26, 2004 3:03 pm

by EDT Support » Mon Aug 28, 2006 1:01 pm

I'm not sure what you mean by 'client modifications'. edtFTPj/PRO can work inside a signed applet. I know for certain that it can work if you include the contents of license.jar and edtftpj-pro.jar in the same signed jar file that contains your applet code. If you do this then the user will be prompted when the application is loaded. If they opt to trust your applet then SFTP should work. I've just tried this and it worked fine.

Is that what you are trying to do or am I misunderstanding something? If that is what you're trying to do and you're still having trouble then I can send you a sample SFTP applet that you can test on your system. Just write to our support address if you would like a copy.

- Hans (EDT)
no avatar
User

RLord321

Posts

14

Joined

Sat Aug 26, 2006 11:13 am

by RLord321 » Mon Aug 28, 2006 11:26 pm

Client modifications as in modifying policy files, etc.

In my applet example, I did not include your JAR with my JAR, but I added it in the ARCHIVE, along with my jar.. like this:

<applet>
...
archive="myapplet.jar, license.jar, edt...jar (forgot the exact name)"
...
</applet>

I am signing my jar -- Self signing it (not with Thwarte or Verisign). But yes, that is what I want to do, connect to my OpenSSH server via an applet. I'll have to try it later on today, but I will send the email to get the sample you created.
no avatar
User

apawar

Posts

3

Joined

Fri Feb 13, 2009 11:27 am

any other workaround?

by apawar » Sat Feb 14, 2009 3:58 am

no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: any other workaround?

by support2 » Sat Feb 14, 2009 7:21 am

no avatar
User

apawar

Posts

3

Joined

Fri Feb 13, 2009 11:27 am

different error - SecurityPermission CryptixEDT

by apawar » Sat Feb 14, 2009 7:51 am

no avatar
User

EDT Support

Posts

905

Joined

Mon Apr 26, 2004 3:03 pm

by EDT Support » Sat Feb 14, 2009 7:19 pm

no avatar
User

apawar

Posts

3

Joined

Fri Feb 13, 2009 11:27 am

Problem corrected

by apawar » Wed Feb 18, 2009 7:23 am

I was initially using "com.enterprisedt.net.ftp.ssl. SSLFTPClient" which was throwing that error.
After going through other FTP options - I changed it to "com.enterprisedt.net.ftp.pro.ProFTPClient"
This got rid of the error, but my applet was still not deployed, due to inconsistency of certificates being used.


Since its an applet, with other jars. EDTFTPj-pro has its own certificate.
All these jars had to be consolidated to use one certificate. I created a fake certificate for development.

After correcting that, I was able to deploy the applet succesfully

Thanks
Abhishek
no avatar
User

EDT Support

Posts

905

Joined

Mon Apr 26, 2004 3:03 pm

by EDT Support » Wed Feb 18, 2009 9:49 am

Hi Abhishek

Thanks for telling us how you solved the problem. It really should have worked using SSLFTPClient. Our own applet product, , uses SSLFTPClient so we know that it can work. If you find that you do need to use SSLFTPClient then we're here to help.

- Hans (EnterpriseDT)

Who is online

Users browsing this forum: No registered users and 21 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign