From ffa1817fb7763ab1d4e8b06eee942ec79e29d540 Mon Sep 17 00:00:00 2001 From: Thomas Glatzer Date: Fri, 19 Jan 2024 16:29:11 +0100 Subject: [PATCH] Bump version --- ACME-PS/ACME-PS.psd1 | 4 ++-- dist/ACME-PS/ACME-PS.psd1 | 4 ++-- dist/ACME-PS/ACME-PS.psm1 | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ACME-PS/ACME-PS.psd1 b/ACME-PS/ACME-PS.psd1 index fec7a08..577a2cc 100644 --- a/ACME-PS/ACME-PS.psd1 +++ b/ACME-PS/ACME-PS.psd1 @@ -1,6 +1,6 @@ @{ RootModule = 'ACME-PS.psm1' - ModuleVersion = '1.5.8' + ModuleVersion = '1.5.9' GUID = '2DBF7E3F-F830-403A-9300-78A11C7CD00C' CompatiblePSEditions = @("Core", "Desktop") @@ -88,7 +88,7 @@ ReleaseNotes = 'Please see the release notes from the release distribution page: https://github.com/PKISharp/ACME-PS/releases' # Prerelase - Prerelease = 'beta' + # Prerelease = 'beta' } # End of PSData hashtable } # End of PrivateData hashtable diff --git a/dist/ACME-PS/ACME-PS.psd1 b/dist/ACME-PS/ACME-PS.psd1 index fec7a08..577a2cc 100644 --- a/dist/ACME-PS/ACME-PS.psd1 +++ b/dist/ACME-PS/ACME-PS.psd1 @@ -1,6 +1,6 @@ @{ RootModule = 'ACME-PS.psm1' - ModuleVersion = '1.5.8' + ModuleVersion = '1.5.9' GUID = '2DBF7E3F-F830-403A-9300-78A11C7CD00C' CompatiblePSEditions = @("Core", "Desktop") @@ -88,7 +88,7 @@ ReleaseNotes = 'Please see the release notes from the release distribution page: https://github.com/PKISharp/ACME-PS/releases' # Prerelase - Prerelease = 'beta' + # Prerelease = 'beta' } # End of PSData hashtable } # End of PrivateData hashtable diff --git a/dist/ACME-PS/ACME-PS.psm1 b/dist/ACME-PS/ACME-PS.psm1 index 5c35f8a..3579835 100644 --- a/dist/ACME-PS/ACME-PS.psm1 +++ b/dist/ACME-PS/ACME-PS.psm1 @@ -309,7 +309,7 @@ class Certificate { # `X509Certificate2Collections.Export()` seems to iterate through the certificates in LIFO order # We assume the server sends the certificates in correct order - Leaf certificate first, then the issuer, then the next issuer, etc. - for($i = $acmeCertificates.Length - 1; $i -gt 1; $i--) { + for($i = $acmeCertificates.Length - 1; $i -gt 0; $i--) { $result.Add([Security.Cryptography.X509Certificates.X509Certificate2]::new($acmeCertificates[$i])) | Out-Null; }