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

Test-Thumbprint Updated to not throw when FIPS compliant algorithms enabled #122

Open
dchristian3188 opened this issue Feb 20, 2018 · 1 comment
Labels
bug The issue is a bug. in progress The issue is being actively worked on by someone.

Comments

@dchristian3188
Copy link

The current implementation of the the Test-Thumbprint helper function currently throws a terminating error when FIPS compliant algorithms are enabled. FIPS disables certain algorithms and prevents dot net from using them. To test set HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\FipsAlgorithmPolicy\enabled to 1.

This is the part of code that is currenlty causing trouble.

$bitSize = ( New-Object -TypeName $hashProvider ).HashSize
                $validHash = New-Object `
                    -TypeName PSObject `
                    -Property @{
                    Hash      = $hashProvider.BaseType.Name
                    BitSize   = $bitSize
                    HexLength = $bitSize / 4
                }
                $validHashes += @( $validHash )

This appears to be present on all versions of the resource

@PlagueHO PlagueHO added bug The issue is a bug. in progress The issue is being actively worked on by someone. labels Mar 29, 2018
@PlagueHO
Copy link
Member

Thanks for submitting this @dchristian3188 - sorry it has taken so long! There is a PR going through to get this fixed, but it looks like it has been abandoned, so I'll pick it up and get it through. Thanks again!

@SteveL-MSFT SteveL-MSFT added this to In progress in powershell/dscresources May 14, 2019
@SteveL-MSFT SteveL-MSFT removed this from In progress in powershell/dscresources Nov 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug. in progress The issue is being actively worked on by someone.
Projects
None yet
Development

No branches or pull requests

2 participants