WebGL will only publish with FIPS disabled

When I was trying to publish for WebGL with 5.6.0 on Windows 7, IL2CPP kept crashing even with a blank scene:

So with further research I noticed the line in my logs: “This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms”

Going to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa\FipsAlgorithmPolicy and setting enabled to “0” instead of “1” allows me to successfully build for WebGL, which effectively disables FIPS.

I noticed this on Microsoft’s website:

“Microsoft .NET Framework applications such as Microsoft ASP.NET only allow for using algorithm implementations that are certified by NIST to be FIPS 140 compliant. Specifically, the only cryptographic algorithm classes that can be instantiated are those that implement FIPS-compliant algorithms. The names of these classes end in “CryptoServiceProvider” or “Cng.” Any attempt to create an instance of other cryptographic algorithm classes, such as classes with names ending in “Managed,” cause an InvalidOperationException exception to occur. Additionally, any attempt to create an instance of a cryptographic algorithm that is not FIPS compliant, such as MD5, also causes an InvalidOperationException exception”

Not sure what to do about this, I feel like I shouldn’t be disabling this feature?

Thanks,
Perry

1 Like

Hi unklebooey,
I get the same problem when I try to build for WebGL with Unity 5.6 and I don’t understand how to solve it.
How can I going to HKEY_LOCAL_MACHINE/… ?

Thanks for the help.

1 Like

i have the same problem

Windows-R → regedit

Mac solution?

I’m getting the same problem, two years later. However I checked my FipsAlgorithmPolicy setting and it’s enabled = 0 already. Any other way to solve this?

Thank you very much

Id like to add ditto with 2018.3f2

it seems to cause also weird behavior with native builds too, hundreds (litterally) of processes appear and hang around and it takes forever to build too

In 2019, the bug is still here, not only Unity crashes but also my ENTIRE COMPUTER SHUTS DOWN, I’ve tried everything, my FipsAlgorithm was already disabled, I am trying on a blank project, the computer still shut down at the “Build native binary stage with IL2CPP” stage.
Why they haven’t fix that issue after so many years ???

3 Likes

In 2020 September, bug is still here. My FIPS is on 0 already but the error is still going. What’s happening???

2 Likes

Yep, I do have this problem too in December 2020.

I’ve got error messages though.

Error 1

Error 2

Error 3

Error 4

It doesn’t happen with classic standalone building. It does block in the IL2CPP part. I just started the tutorials and systematically get stuck in the WebGL part—it is very frustrating and problematic as I’ll need the WebGL version later on.

Version 2019.4.10f1 (on Mac High Sierra) - getting frozen on building IL2CPP for WebGL. After reading the rest of the responses (and I’m on mac) I don’t think I’m going to even bother with FIPS. Any other solutions yet?

On OS Console I see this error at the same time as it freezes, But I also see the same message all through the logs even when Unity first boots - so I’m not sure if it has anything to do with it:

error 02:06:19.055464 -0700 Unity nw_path_close_fd Failed to close guarded necp fd 106 [9: Bad file descriptor]