Hello.

I am working on a small socket application that utilizes SSL and FTP protocol.

The problem is that the server response with error:

"503 Log in with USER first."

The SSL is OpenSSL. Here is an overview of the sequence.

- winsock connect
- AUTH SSL
- SSL_connect()
- handshake is success

// At this point, everything is send/recv via SSL
// SSL_send() and SSL_recv()

- PBSZ 0
- PROT P
- USER <username>
- PASS <password>
...
// All the above are successful
// Server respond "230 <username> logged in."

// Every command afterward returns an error
- SYST

Basically, every command the program sends, the server would return "503 Log in with USER first."

Do you need to package outgoing data in a special SSL package before passing it to SSL_send()?

Please post if you have any idea.

Thanks,

Kuphryn
Posted on 2004-03-29 23:59:03 by kuphryn
Sorry, off topic a bit, but have you used/configured OpenSSL for use as a CA with IIS before?
Posted on 2004-03-30 01:42:40 by SubEvil
No. I work mainly with FTP protocol with SSL.

Kuphryn
Posted on 2004-03-30 11:24:05 by kuphryn