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

Can't connect when FIPS is enforced on Windows. #66

Open
tdhintz opened this issue Feb 10, 2022 · 2 comments
Open

Can't connect when FIPS is enforced on Windows. #66

tdhintz opened this issue Feb 10, 2022 · 2 comments

Comments

@tdhintz
Copy link

tdhintz commented Feb 10, 2022

When a Windows machine has the FIPS 140-2 restriction enabled then connections failed with a message that the encryption being used is not FIPS compliant.

@zbalkan
Copy link

zbalkan commented Jun 2, 2022

In my case, I got the error when I used Shared connection Mode. But when I tried Direct Connection Mode, I managed to connect to the database.

@zbalkan
Copy link

zbalkan commented Jun 3, 2022

Since SHA1 class is not FIPS compliant but HMACSHA1 is, changing the line from

var sha = SHA1.Create();

to

var sha = new HMACSHA1();

might suffice.

However, I tried to reproduce the error but there are differences between the latest release, which is almost two years old, and the current master. It might have been solved already in another way.

It would be great if a new release can be published soon.

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