News  [SoftwareSite

Latest News
Older News
RSS Feed
 
Complete Projects
Useful Classes
Top Downloads
Message Board
AllAPI.net
 
Send Comments
Software License
Mentalis.org Buttons
Donate
 
Forums -> Security Library Forum
 
Exception in sample SMTPClient  
by Meriamon [meriamon at gmx dot net]
posted on 2003/08/22

Hi,

I tried to start an indirect TLS connection with the sample client. Until STARTTLS everything is fine, then MAIL FROM appears, then the certificate, and after that I always get this exception:

An error occurred [Byte array is too large. The maximum size byte array that can be encrypted by this public key implementation is 16 bytes.]
System.Security.Cryptography.CryptographicException: Byte array is too large. The maximum size byte array that can be encrypted by this public key implementation is 16 bytes.
at Org.Mentalis.Security.Ssl.SecureSocket.EndSend(IAsyncResult asyncResult)
at Org.Mentalis.Security.Ssl.SecureSocket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at Org.Mentalis.Security.Ssl.SecureSocket.Send(Byte[] buffer)
at SmtpClient.Send(String data)
at SmtpClient.Start()

by Pieter Philippaerts [Pieter at mentalis dot org]
posted on 2003/08/22

What operating system are you running?

If you are running Windows 98 or Windows 2000, try installing the high encryption pack.

Windows 98:
http://www.microsoft.com/windows/ie/downloads/recommended/128bit/default.asp

Windows 2000:
http://www.microsoft.com/windows2000/downloads/recommended/encryption/

 

Copyright © 2002-2007, The Mentalis.org Team. All rights reserved.
This site is located at http://www.mentalis.org/
Send comments to the webmaster.