Skip to content

Conversation

@andreasjordan
Copy link
Collaborator

…cate)

Type of Change

  • Bug fix (non-breaking change, fixes an issue with pr New-DbaComputerCertificate, options for Algorithm and Period validity #9264 )
  • New feature (non-breaking change, adds functionality, fixes # )
  • Breaking change (affects multiple commands or functionality, fixes # )
  • Ran manual Pester test and has passed (.\tests\manual.pester.ps1)
  • Adding code coverage to existing functionality
  • Pester test is included
  • If new file reference added for test, has is been added to github.com/dataplat/appveyor-lab ?
  • Unit test is included
  • Documentation
  • Build system

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
Copy link
Member

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

@potatoqualitee potatoqualitee merged commit 95c9644 into development Apr 11, 2024
@potatoqualitee potatoqualitee deleted the NewDbaComputerCertificate_fix branch April 11, 2024 07:44
@andreasjordan andreasjordan changed the title New-DbaComputerCertifficate - Only use MonthsValid for self-signed certificates New-DbaComputerCertificate - Only use MonthsValid for self-signed certificates Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants