dsccommunity / CertificateDsc

DSC resources to simplify administration of certificates on a Windows Server.
https://dsccommunity.org
MIT License
122 stars 69 forks source link

Remove Test Dependency on New-SelfSignedCertificateEx - Fixes #221, #250 #251

Closed PlagueHO closed 3 years ago

PlagueHO commented 3 years ago

Pull Request (PR) description

This PR primarily removes the testing requirement to use the New-SelfSignedCertificateEx. This resource will no longer be able to be tested on Windows Server 2012 R2 - although the resources will still work. This is to simplify testing and remove dependencies.

I also refactored the code and tests and in the process identified an issue where FIPS support wasn't available on PS Core 6/PS 7. So, this has also been fixed.

Finally, I improved the overall resource performance by adding caching to the thumbprint hashing check code. This increases test performance significantly and speeds up CI from 45 min to 12 min.

This Pull Request (PR) fixes the following issues

Changed
Fixed

Task list

@johlju - would you mind reviewing when you have time?


This change is Reviewable