Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Securityexception connecting to glftpd 2.0

Securityexception connecting to glftpd 2.0

Scheduled Pinned Locked Moved C#
securityhelptutorialsysadminlinux
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Azraelgod
    wrote on last edited by
    #1

    Hi! I`m tryng to connect to a ftp-server which allows only a secure connection. Connecting with Flashfpx it works with both "auth ssl" and "auth tls", but when i try to do it with the menatils security-library and the example ftp-client i get this exception: 220 (glFTPd 2.00 Linux+TLS) ready. AUTH TLS 234 AUTH TLS successful Org.Mentalis.Security.SecurityException: An error occurs while communicating with the remote host. ---> Org.Mentalis.Security.Ssl.Shared.SslException: The server hello message uses a protocol that was not recognized. at Org.Mentalis.Security.Ssl.Shared.CompatibilityLayer.ProcessServerHello(Byte[] bytes, Int32 offset, Int32 size) in D:\ssh-server\seclib-1.0\seclib\Security\Ssl\Shared\CompatibilityLayer.cs:line 80 at Org.Mentalis.Security.Ssl.Shared.CompatibilityLayer.ProcessHello(Byte[] bytes, Int32 offset, Int32 size) in D:\ssh-server\seclib-1.0\seclib\Security\Ssl\Shared\CompatibilityLayer.cs:line 71 at Org.Mentalis.Security.Ssl.Shared.SocketController.OnReceive(IAsyncResult ar) in D:\ssh-server\seclib-1.0\seclib\Security\Ssl\Shared\SocketController.cs:line 82 --- End of inner exception stack trace --- at Org.Mentalis.Security.Ssl.SecureSocket.EndSend(IAsyncResult asyncResult) in d:\ssh-server\seclib-1.0\seclib\security\ssl\securesocket.cs:line 380 at Org.Mentalis.Security.Ssl.SecureSocket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) in d:\ssh-server\seclib-1.0\seclib\security\ssl\securesocket.cs:line 326 at FtpClient.SendCommand(String command) in d:\csharpproggies\windowsapplication1\ftpclient.cs:line 146 at FtpClient.DownloadFile(Url url, Int32 choice) in d:\csharpproggies\windowsapplication1\ftpclient.cs:line 115 at FtpClient.Start() in d:\csharpproggies\windowsapplication1\ftpclient.cs:line 91 at FtpClient.Main(String[] args) in d:\csharpproggies\windowsapplication1\ftpclient.cs:line 48 I´ve read somewhere that the menatlis-library didn´t support dhe/dss and the server seems to need this. Here´s a part of the log when connecting with FlashFXP: [R] AUTH SSL [R] 234 AUTH SSL successful [R] Connected. Negotiating SSL session.. [R] SSL negotiation successful... [R] SSL encrypted session using cipher DHE-DSS-AES256-SHA (256 bits) [R] PBSZ 0 [R] 200 PBSZ 0 successful I´ve been told OpenSSL would support this authenticationmode, but i don´t have a clue how to use this library in my project. Any suggestions and help will be appreciated. Azrael

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups