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

New-DbaComputerCertificate - Only use MonthsValid for self-signed certificates #9318

Closed andreasjordan closed 2 months ago

andreasjordan commented 3 months ago

…cate)

Type of Change

See comments on #9264 for details.

Summary: NotBefore and NotAfter are only valid for RequestType = Cert, which are the self-signed certificates. They are not valid for the others as they use RequestType = PKCS10. See documentation: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/certreq_1

potatoqualitee commented 2 months ago

thanks, man. i did not know that. looks good.