I am using TIdTCPClient
with SSL. After awhile of connecting, I get these exceptions in the debugger, and the client is disconnected:
Project project1.exe raised exception class EIdOSSLUnderlyingCryptoError with message 'error:14086081:SSL routines:SSL3_ENC:block cipher pad is wrong'.
Project project1.exe raised exception class EIdOSSLUnderlyingCryptoError with message 'error:1408F119:SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac'.
And also, it raises "wrong ssl version" with those exceptions above.
I am using sslvSSLv3
on the client and server:
idSslHandler.SSLOptions.Method := sslvSSLv3;
idSslHandler.SSLOptions.Mode := sslmUnassigned;
What could be the problem?