Skip to content

Commit

Permalink
Merge pull request #148 from rcarpenter79/dev
Browse files Browse the repository at this point in the history
Test-CertificateAuthority: Fixed issue where the DisplayName is returned instead of the Name of the template
  • Loading branch information
PlagueHO committed Feb 16, 2019
2 parents 7dc6b04 + 3f90dcc commit 86d89c6
Show file tree
Hide file tree
Showing 6 changed files with 671 additions and 123 deletions.
125 changes: 79 additions & 46 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@

## Unreleased

- Minor style corrections from PR for [Issue #161](https://github.com/PowerShell/CertificateDsc/issues/161)
that were missed.
- Opt-in to Example publishing to PowerShell Gallery - fixes [Issue #177](https://github.com/PowerShell/CertificateDsc/issues/177).
- Minor style corrections from PR for
[Issue #161](https://github.com/PowerShell/CertificateDsc/issues/161)
that were missed.
- Opt-in to Example publishing to PowerShell Gallery - fixes
[Issue #177](https://github.com/PowerShell/CertificateDsc/issues/177).
- Changed Test-CertificateAuthority to return the template name if it finds the
display name of the template in the certificate -fixes
[Issue #147](https://github.com/PowerShell/CertificateDsc/issues/147).

## 4.3.0.0

Expand All @@ -13,7 +18,8 @@
[Issue #161](https://github.com/PowerShell/CertificateDsc/issues/161).
- Update LICENSE file to match the Microsoft Open Source Team standard - fixes
[Issue 164](https://github.com/PowerShell/CertificateDsc/issues/164).
- Opted into Common Tests - fixes [Issue 168](https://github.com/PowerShell/CertificateDsc/issues/168):
- Opted into Common Tests - fixes
[Issue 168](https://github.com/PowerShell/CertificateDsc/issues/168):
- Required Script Analyzer Rules
- Flagged Script Analyzer Rules
- New Error-Level Script Analyzer Rules
Expand All @@ -34,61 +40,75 @@
tests easier to read.
- Improved unit test layout and updated to meet standards.
- Fixed bug in certificate renewal with `RenewalCert` attribute in the
incorrect section - fixes [Issue 172](https://github.com/PowerShell/CertificateDsc/issues/172)
incorrect section - fixes
[Issue 172](https://github.com/PowerShell/CertificateDsc/issues/172)
- Fixed bug in certificate renewal when subject contains X500 path that
is in a different order - fixes [Issue 173](https://github.com/PowerShell/CertificateDsc/issues/173)
is in a different order - fixes
[Issue 173](https://github.com/PowerShell/CertificateDsc/issues/173)

## 4.2.0.0

- Added a CODE_OF_CONDUCT.md with the same content as in the README.md - fixes
[Issue #139](https://github.com/PowerShell/CertificateDsc/issues/139).
- Refactored module folder structure to move resource to root folder of
repository and remove test harness - fixes [Issue #142](https://github.com/PowerShell/CertificateDsc/issues/142).
repository and remove test harness - fixes
[Issue #142](https://github.com/PowerShell/CertificateDsc/issues/142).
- Updated Examples to support deployment to PowerShell Gallery scripts.
- Correct configuration names in Examples - fixes [Issue #150](https://github.com/PowerShell/CertificateDsc/issues/150).
- Correct filename case of `CertificateDsc.Common.psm1` - fixes [Issue #149](https://github.com/PowerShell/CertificateDsc/issues/149).
- Correct configuration names in Examples - fixes
[Issue #150](https://github.com/PowerShell/CertificateDsc/issues/150).
- Correct filename case of `CertificateDsc.Common.psm1` - fixes
[Issue #149](https://github.com/PowerShell/CertificateDsc/issues/149).
- Remove exclusion of all tags in appveyor.yml, so all common tests can be run
if opt-in.
- PfxImport:
- Added requirements to README.MD to specify cryptographic algorithm
support - fixes [Issue #153](https://github.com/PowerShell/CertificateDsc/issues/153).
support - fixes
[Issue #153](https://github.com/PowerShell/CertificateDsc/issues/153).
- Changed Path parameter to be optional to fix error when ensuring certificate
is absent and certificate file does not exist on disk - fixes [Issue #136](https://github.com/PowerShell/CertificateDsc/issues/136).
is absent and certificate file does not exist on disk - fixes
[Issue #136](https://github.com/PowerShell/CertificateDsc/issues/136).
- Removed ShouldProcess because it is not required by DSC Resources.
- Minor style corrections.
- Changed unit tests to be non-destructive.
- Improved naming and description of example files.
- Added localization string ID suffix for all strings.
- Added .VSCode settings for applying DSC PSSA rules - fixes [Issue #157](https://github.com/PowerShell/CertificateDsc/issues/157).
- Added .VSCode settings for applying DSC PSSA rules - fixes
[Issue #157](https://github.com/PowerShell/CertificateDsc/issues/157).

## 4.1.0.0

- PfxImport:
- Changed so that PFX will be reimported if private key is not
installed - fixes [Issue #129](https://github.com/PowerShell/CertificateDsc/issues/129).
installed - fixes
[Issue #129](https://github.com/PowerShell/CertificateDsc/issues/129).
- Corrected to meet style guidelines.
- Corrected path parameter description - fixes [Issue #125](https://github.com/PowerShell/CertificateDsc/issues/125).
- Corrected path parameter description - fixes
[Issue #125](https://github.com/PowerShell/CertificateDsc/issues/125).
- Refactored to remove code duplication by creating Get-CertificateStorePath.
- Improved unit tests to meet standards and provide better coverage.
- Improved integration tests to meet standards and provide better coverage.
- CertificateDsc.Common:
- Corrected to meet style guidelines.
- Added function Get-CertificateStorePath for generating Certificate Store path.
- Remove false verbose message from `Test-Thumbprint` - fixes [Issue #127](https://github.com/PowerShell/CertificateDsc/issues/127).
- Added function Get-CertificateStorePath for generating Certificate Store
path.
- Remove false verbose message from `Test-Thumbprint` - fixes
[Issue #127](https://github.com/PowerShell/CertificateDsc/issues/127).
- CertReq:
- Added detection for FIPS mode in Test-Thumbprint - fixes [Issue #107](https://github.com/PowerShell/CertificateDsc/issues/107).
- Added detection for FIPS mode in Test-Thumbprint - fixes
[Issue #107](https://github.com/PowerShell/CertificateDsc/issues/107).

## 4.0.0.0

- BREAKING CHANGE
- Renamed xCertificate to CertificateDsc - fixes [Issue #114](https://github.com/PowerShell/xCertificate/issues/114).
- Renamed xCertificate to CertificateDsc - fixes
[Issue #114](https://github.com/PowerShell/xCertificate/issues/114).
- Changed all MSFT_xResourceName to MSFT_ResourceName.
- Updated DSCResources, Examples, Modules and Tests for new naming.
- Updated Year to 2018 in License and Manifest.
- Updated README.md from xCertificate to CertifcateDsc
- Removed unnecessary code from:
- CertificateDsc\Modules\CertificateDsc\DSCResources\MSFT_CertReq\MSFT_CertReq.psm1
- Deleted $rspPath = [System.IO.Path]::ChangeExtension($workingPath, '.rsp')
- Deleted `$rspPath = [System.IO.Path]::ChangeExtension($workingPath, '.rsp')`

## 3.2.0.0

Expand All @@ -101,13 +121,16 @@
- Added `Documentation and Examples` section to Readme.md file - see
[issue #98](https://github.com/PowerShell/xCertificate/issues/98).
- Changed description in Credential parameter of xPfxImport resource
to correctly generate parameter documentation in Wiki - see [Issue #103](https://github.com/PowerShell/xCertificate/issues/103).
to correctly generate parameter documentation in Wiki - see
[Issue #103](https://github.com/PowerShell/xCertificate/issues/103).
- Changed description in Credential parameter of xCertReq resource
to clarify that a PSCredential object should be used.
- Updated tests to meet Pester V4 guidelines - fixes [Issue #105](https://github.com/PowerShell/xCertificate/issues/105).
- Updated tests to meet Pester V4 guidelines - fixes
[Issue #105](https://github.com/PowerShell/xCertificate/issues/105).
- Add support for Windows Server 2008 R2 which does not contain PKI
module so is missing `Import-PfxCertificate` and `Import-Certificate`
cmdlets - fixes [Issue #46](https://github.com/PowerShell/xCertificate/issues/46).
cmdlets - fixes
[Issue #46](https://github.com/PowerShell/xCertificate/issues/46).

## 3.0.0.0

Expand All @@ -124,16 +147,19 @@
- ISSUE_TEMPLATE.md
- PULL_REQUEST_TEMPLATE.md
- Opted into Common Tests 'Validate Module Files' and 'Validate Script Files'.
- Converted files with UTF8 with BOM over to UTF8 - fixes [Issue 87](https://github.com/PowerShell/xCertificate/issues/87).
- Converted to use auto-documentation/wiki format - fixes [Issue 84](https://github.com/PowerShell/xCertificate/issues/84).
- Converted files with UTF8 with BOM over to UTF8 - fixes
[Issue 87](https://github.com/PowerShell/xCertificate/issues/87).
- Converted to use auto-documentation/wiki format - fixes
[Issue 84](https://github.com/PowerShell/xCertificate/issues/84).

## 2.8.0.0

- xCertReq:
- Added FriendlyName parameter to xCertReq.
- Changed exceptions to be raised using New-InvalidOperationException from PSDscResources.
- Changed integration tests to use Config Data instead of value in config to support
additional tests.
- Changed exceptions to be raised using New-InvalidOperationException from
PSDscResources.
- Changed integration tests to use Config Data instead of value in config to
support additional tests.
- Converted unit tests to use Get-InvalidOperationRecord in CommonTestHelper.
- Improved unit test style to match standard layout.
- Minor corrections to style to be HQRM compliant.
Expand All @@ -143,46 +169,51 @@
- Added markdownlint.json file to enable line length rule checking in VSCode
with [MarkdownLint extension](https://marketplace.visualstudio.com/items?itemName=DavidAnson.vscode-markdownlint)
installed.
- Added the VS Code PowerShell extension formatting settings that cause PowerShell
files to be formatted as per the DSC Resource kit style guidelines.
- Added the VS Code PowerShell extension formatting settings that cause
PowerShell files to be formatted as per the DSC Resource kit style guidelines.
- Fixed verbose preference not being passed to CertificateDsc.Common functions -
fixes [Issue 70](https://github.com/PowerShell/xCertificate/issues/70).
- Converted all calls to `New-InvalidArgumentError` function to `New-InvalidArgumentException`
found in `CertificateDsc.ResourceHelper` - fixes [Issue 68](https://github.com/PowerShell/xCertificate/issues/68)
- Replaced all calls to `Write-Error` with calls to `New-InvalidArgumentException`
and `New-InvalidOperationException`
- Converted all calls to `New-InvalidArgumentError` function to
`New-InvalidArgumentException` found in `CertificateDsc.ResourceHelper` - fixes
[Issue 68](https://github.com/PowerShell/xCertificate/issues/68)
- Replaced all calls to `Write-Error` with calls to
`New-InvalidArgumentException` and `New-InvalidOperationException`
- xWaitForCertificateServices:
- Added new resource.
- Cleaned up example format to meet style guidelines and changed examples to
issue 2048 bit certificates.
- Fixed spelling error in xCertificateExport Issuer parameter description.
- Prevent unit tests from DSCResource.Tests from running during test
execution - fixes [Issue 100](https://github.com/PowerShell/xCertificate/issues/100).
execution - fixes
[Issue 100](https://github.com/PowerShell/xCertificate/issues/100).

## 2.7.0.0

- Added integration test to test for conflicts with other common resource kit modules.
- Prevented ResourceHelper and Common module cmdlets from being exported to resolve
conflicts with other resource modules.
- Added integration test to test for conflicts with other common resource kit
modules.
- Prevented ResourceHelper and Common module cmdlets from being exported to
resolve conflicts with other resource modules.

## 2.6.0.0

- Added mandatory properties for xPfxImport resource example.
- xCertReq:
- Fixed issue where xCertReq does not identify when DNS Names in SANs are incorrect.
- Fixed issue where xCertReq does not identify when DNS Names in SANs are
incorrect.
- Added Certificate Authority auto-discovery to resource xCertReq.
- Added SAN and certificate template name to xCertReq's Get-TargetResource
- Added new parameter UseMachineContext to be able to use CA templates that try
to fill the subject alternative name
- Added new parameter UseMachineContext to be able to use CA templates that
try to fill the subject alternative name.
- CertificateDSc.Common:
- Added function Get-CertificateTemplateName to retrieve template name
- Added function Get-CertificateSan to retrieve subject alternative name
- Added function Find-CertificateAuthority to enable auto-discovery

## 2.5.0.0

- Fixed issue where xCertReq does not process requested certificate when credentials
parameter set and PSDscRunAsCredential not passed. See [issue](https://github.com/PowerShell/xCertificate/issues/49)
- Fixed issue where xCertReq does not process requested certificate when
credentials parameter set and PSDscRunAsCredential not passed. See
[issue](https://github.com/PowerShell/xCertificate/issues/49)

## 2.4.0.0

Expand All @@ -199,8 +230,8 @@
## 2.3.0.0

- xCertReq:
- Added additional parameters KeyLength, Exportable, ProviderName, OID, KeyUsage,
CertificateTemplate, SubjectAltName
- Added additional parameters KeyLength, Exportable, ProviderName, OID,
KeyUsage, CertificateTemplate, SubjectAltName
- Fixed most markdown errors in Readme.md.
- Corrected Parameter decoration format to be consistent with guidelines.

Expand All @@ -222,7 +253,8 @@
- xCertificateImport:
- Fixed bug with Test-TargetResource incorrectly detecting change required.
- Reworked unit tests for improved code coverage to meet HQRM standards.
- Created Integration tests for both importing and removing an imported certificate.
- Created Integration tests for both importing and removing an imported
certificate.
- Added descriptions to MOF file.
- Removed default parameter values for parameters that are required or keys.
- Added verbose messages.
Expand All @@ -231,7 +263,8 @@
- xPfxImport:
- Fixed bug with Test-TargetResource incorrectly detecting change required.
- Reworked unit tests for improved code coverage to meet HQRM standards.
- Created Integration tests for both importing and removing an imported certificate.
- Created Integration tests for both importing and removing an imported
certificate.
- Added descriptions to MOF file.
- Removed default parameter values for parameters that are required or keys.
- Added verbose messages.
Expand Down
Loading

0 comments on commit 86d89c6

Please sign in to comment.