dataplat / dbatools

🚀 SQL Server automation and instance migrations have never been safer, faster or freer
https://dbatools.io
MIT License
2.39k stars 787 forks source link

Allow setting the hashing algorithm and expiry date for self-signed certificates in New-DbaComputerCertificate #9263

Closed daniel-merchant closed 4 months ago

daniel-merchant commented 4 months ago

Summarize Functionality

I would like to set the hashing algorithm and expiry date when creating a new self-signed certificate using the New-DbaComputerCertificate function.

This might become a popular request in light of https://www.brentozar.com/archive/2024/03/read-this-before-your-users-install-ssms-20/

Is there a command that is similiar or close to what you are looking for?

Yes

Technical Details

Current (default) values are to create a certificate for one year using the less secure sha1 algorithm that many IT departments are going to flag up. New-DbaComputerCertificate should let me specify multiple years and sha256 and above.