Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement SSL strategies #7

Open
3 of 5 tasks
rusuly opened this issue Feb 20, 2020 · 3 comments
Open
3 of 5 tasks

Implement SSL strategies #7

rusuly opened this issue Feb 20, 2020 · 3 comments
Assignees

Comments

@rusuly
Copy link
Owner

rusuly commented Feb 20, 2020

BinlogClient should support the following SSL strategies:
See implementation

  • None
  • If available
  • Require
  • Require and verify CA
  • Require and verify CA + Host identity
@rusuly rusuly self-assigned this Feb 20, 2020
@wangengzheng
Copy link

Hi rusuly, this looks really good, I had this problem.

I upgraded the nuget package of dotnet6 (MysqlCdc --version 3.0.1) to connect past azure mysql database. prompt error.

System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at MySqlCdc.Extensions.ThrowIfErrorPacket(Byte[] packet, String message)
   at MySqlCdc.Connector.AuthenticateAsync(HandshakePacket handshake, Byte seqNum, CancellationToken cancellationToken)
   at MySqlCdc.Connector.ConnectAsync(CancellationToken cancellationToken)
   at MySqlCdc.BinlogClient.Replicate(CancellationToken cancellationToken)+MoveNext()
   at MySqlCdc.BinlogClient.Replicate(CancellationToken cancellationToken)+System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult()

ThrowIfErrorPacket method received empty array. The message prompt is Authentication error.

I lowered the mysqlcdc nuget to the corresponding 2.0.1 under the dotnet6 framework and it worked normally.

Limitations

  • Currently, the library doesn't fully support SSL encryption. <------Is it related?

@rusuly
Copy link
Owner Author

rusuly commented Apr 16, 2022

Hi, sorry for late response.
I think it's just a bug in 3.0.1 and it's not related to SSL statement in the docs.
Unfortunately, I cannot maintain the respository because of the russian invasion of Ukraine so I hope you will manage to debug and fix the issue if you need exactly 3.0.1 version.

@wangengzheng
Copy link

wangengzheng commented Apr 22, 2022

Thank you, I wish peace at an early date

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants