diff --git a/CHANGELOG.md b/CHANGELOG.md index d043c375..a6a244a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 6.4.1 +- Fix `Import-VdcCertificate -Data` failure due to being converted to an array. [#290](https://github.com/Venafi/VenafiPS/issues/290) + + ## 6.4.0 - Add `Export-VdcVaultObject` to retrieve historical certificates. This function supports certificates, keys, and p12. [#280](https://github.com/Venafi/VenafiPS/issues/280) - Add support in `New-VcConnector` for manifests from the simulator and 'full' ones which already have deployment details @@ -708,5 +712,6 @@ This is a major release. Although every attempt has been made to be backwards c + diff --git a/VenafiPS/VenafiPS.psd1 b/VenafiPS/VenafiPS.psd1 index d1472853..022faa07 100644 --- a/VenafiPS/VenafiPS.psd1 +++ b/VenafiPS/VenafiPS.psd1 @@ -3,7 +3,7 @@ # # Generated by: Greg Brownstein # -# Generated on: 07/08/2024 +# Generated on: 08/08/2024 # @{ @@ -12,7 +12,7 @@ RootModule = 'VenafiPS.psm1' # Version number of this module. -ModuleVersion = '6.4.0' +ModuleVersion = '6.4.1' # Supported PSEditions # CompatiblePSEditions = @() diff --git a/docs/changelog.md b/docs/changelog.md index b3b5890f..1c680969 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,3 +1,7 @@ +## 6.4.1 +- Fix `Import-VdcCertificate -Data` failure due to being converted to an array. [#290](https://github.com/Venafi/VenafiPS/issues/290) + + ## 6.4.0 - Add `Export-VdcVaultObject` to retrieve historical certificates. This function supports certificates, keys, and p12. [#280](https://github.com/Venafi/VenafiPS/issues/280) - Add support in `New-VcConnector` for manifests from the simulator and 'full' ones which already have deployment details @@ -708,5 +712,6 @@ This is a major release. Although every attempt has been made to be backwards c + diff --git a/docs/functions/Import-VdcCertificate.md b/docs/functions/Import-VdcCertificate.md index 8df2a7a9..d605616d 100644 --- a/docs/functions/Import-VdcCertificate.md +++ b/docs/functions/Import-VdcCertificate.md @@ -7,28 +7,28 @@ Import one or more certificates ### ByFile (Default) ``` -Import-VdcCertificate -PolicyPath -Path [-Name ] [-EnrollmentAttribute ] +Import-VdcCertificate -PolicyPath -Path [-Name ] [-EnrollmentAttribute ] [-PrivateKeyPassword ] [-Reconcile] [-ThrottleLimit ] [-PassThru] [-VenafiSession ] [-ProgressAction ] [] ``` ### ByFileWithPrivateKey ``` -Import-VdcCertificate -PolicyPath -Path [-Name ] [-EnrollmentAttribute ] +Import-VdcCertificate -PolicyPath -Path [-Name ] [-EnrollmentAttribute ] -PrivateKey -PrivateKeyPassword [-Reconcile] [-ThrottleLimit ] [-PassThru] [-VenafiSession ] [-ProgressAction ] [] ``` ### ByDataWithPrivateKey ``` -Import-VdcCertificate -PolicyPath -Data [-Name ] [-EnrollmentAttribute ] +Import-VdcCertificate -PolicyPath -Data [-Name ] [-EnrollmentAttribute ] -PrivateKey -PrivateKeyPassword [-Reconcile] [-ThrottleLimit ] [-PassThru] [-VenafiSession ] [-ProgressAction ] [] ``` ### ByData ``` -Import-VdcCertificate -PolicyPath -Data [-Name ] [-EnrollmentAttribute ] +Import-VdcCertificate -PolicyPath -Data [-Name ] [-EnrollmentAttribute ] [-PrivateKeyPassword ] [-Reconcile] [-ThrottleLimit ] [-PassThru] [-VenafiSession ] [-ProgressAction ] [] ``` @@ -42,21 +42,25 @@ PowerShell v5 will execute sequentially and v7 will run in parallel. ### EXAMPLE 1 ``` Import-VdcCertificate -PolicyPath \ved\policy\mycerts -Path c:\www.VenafiPS.com.cer -Import a certificate ``` +Import a certificate + ### EXAMPLE 2 ``` gci c:\certs | Import-VdcCertificate -PolicyPath \ved\policy\mycerts -Import multiple certificates ``` +Import multiple certificates. +On PS v7+, the certificates will be imported in parallel. + ### EXAMPLE 3 ``` -Import-VdcCertificate -PolicyPath mycerts -Path (gci c:\certs).FullName -Import multiple certificates in parallel on PS v6+. \ved\policy will be appended to the policy path. +Import-VdcCertificate -PolicyPath mycerts -Data $certData ``` +Import a certificate from data instead of a path + ## PARAMETERS ### -PolicyPath @@ -80,7 +84,7 @@ Path to a certificate file. Provide either this or -Data. ```yaml -Type: String[] +Type: String Parameter Sets: ByFile, ByFileWithPrivateKey Aliases: FullName @@ -96,7 +100,7 @@ Contents of a certificate to import. Provide either this or -Path. ```yaml -Type: String[] +Type: String Parameter Sets: ByDataWithPrivateKey, ByData Aliases: