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.
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.