[CSHARP-3139] Error when enabling FIPS on Windows Server Created: 18/Jun/20  Updated: 18/Jun/20  Resolved: 18/Jun/20

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Matt Choinski Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows Server



 Description   

When enabling FIPS on a Windows Server, we received the following error message:

 
This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms._
[InvalidOperationException: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.] 
System.Security.Cryptography.MD5CryptoServiceProvider..ctor() +5302148 [TargetInvocationException: Exception has been thrown by the target of an invocation.] 
System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0 
System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +289 
System.Security.Cryptography.CryptoConfig.CreateFromName(String name, Object[] args) +888 
System.Security.Cryptography.MD5.Create() +22 MongoDB.Bson.ObjectId.GetMachineHash() +39 
MongoDB.Bson.ObjectId..cctor() +54 [TypeInitializationException: The type initializer for 'MongoDB.Bson.ObjectId' threw an exception.] 
MongoDB.Bson.ObjectId.get_Empty()

 



 Comments   
Comment by Matt Choinski [ 18/Jun/20 ]

Great, thanks - this item can be closed out.

Comment by Rachelle Palmer [ 18/Jun/20 ]

Hi Matt,
Also, if you need any help at all during the process, please reach out to our support team as they are well-versed in these upgrades.

Thank you!
Rachelle

Comment by Jeffrey Yemin [ 18/Jun/20 ]

You might also get hit by CSHARP-1331, so you'll need the 2.0.2 release at a minimum.

Comment by Jeffrey Yemin [ 18/Jun/20 ]

I'm not sure what 1.10.0.62 refers to, but if it's anything in the 1.x series there will be some changes required to update to 2.0, which is a major release. For upgrading instructions please see http://mongodb.github.io/mongo-csharp-driver/2.0/upgrading/

Comment by Matt Choinski [ 18/Jun/20 ]

1.10.0.62 - are there any coding changes needed to switch to the v2.0 driver?

Comment by Jeffrey Yemin [ 18/Jun/20 ]

Hi matthew.r.choinski.ctr@mail.mil,

It appears that this was fixed six years ago in scope of CSHARP-573, and release in the the 2.0 driver.

What version of the driver are you using?

Generated at Wed Feb 07 21:44:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.