Re: Received an unexpected EOF or 0 bytes from the transport stream when using SSL
Posted by: Fernando Gonzalez
Date: April 11, 2012 11:15AM

Hi Peter,

True, removing CertificateFile & CertificatePath from connection string doesn't make sense.

Could it be the case that your certificate expired?
You can check in MMC, following steps like this:
http://www.youtube.com/watch?v=kdQFvm_eKpU

If certificate is expired, you can try SSLMode=Preferred.

The following is the lists of SSL modes allowed (from the source code).

/// <summary>
/// SSL options for connection.
/// </summary>
public enum MySqlSslMode
{
/// <summary>
/// Do not use SSL.
/// </summary>
None,
/// <summary>
/// Use SSL, if server supports it.
/// </summary>
Preferred,
Prefered = Preferred,
/// <summary>
/// Always use SSL. Deny connection if server does not support SSL.
/// Do not perform server certificate validation.
/// </summary>
Required,
/// <summary>
/// Always use SSL. Validate server SSL certificate, but different host name mismatch.
/// </summary>
VerifyCA,
/// <summary>
/// Always use SSL and perform full certificate validation.
/// </summary>
VerifyFull
}

Thanks.

Options: ReplyQuote


Subject
Written By
Posted
Re: Received an unexpected EOF or 0 bytes from the transport stream when using SSL
April 11, 2012 11:15AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.