New-DbaComputerCertificate: Update security defaults to industry standards#10167
Merged
potatoqualitee merged 1 commit intodevelopmentfrom Feb 16, 2026
Merged
Conversation
- Change KeyLength default from 1024 to 2048 bits - Change HashAlgorithm default from sha1 to Sha256 - Remove insecure hash algorithms from ValidateSet - Fix hardcoded Exportable = TRUE to respect NonExportable flag - Update documentation and tests (do New-DbaComputerCertificate) Co-authored-by: Andreas Jordan <[email protected]>
Collaborator
Author
|
As claude has changed the validat sets, backward compatibility is not maintained, as using the old |
Member
|
I actually appreciate that sha1 is not allowed. lez do it 🚤 |
|
Adding a note here @andreasjordan - I did some testing without our scripts and it works as expected with english local. Gonna try with swedish. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR addresses issue #10166 by updating the security defaults for
New-DbaComputerCertificateto meet current industry standards.Critical Security Changes
Additional Updates
Impact
Backward Compatibility: Maintained
-KeyLength 1024or-HashAlgorithm sha1will continue to workSecurity Benefit: High
Fixes #10166
Generated with Claude Code