From f06a8267712cc264cf6fef3b233d11c0c2276789 Mon Sep 17 00:00:00 2001 From: John B Date: Fri, 25 Oct 2019 09:10:06 +0200 Subject: [PATCH 1/3] Update GenLeCertForNS.ps1 Updated version numbers and helpfile --- GenLeCertForNS.ps1 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/GenLeCertForNS.ps1 b/GenLeCertForNS.ps1 index e8c4d60..b893c30 100644 --- a/GenLeCertForNS.ps1 +++ b/GenLeCertForNS.ps1 @@ -51,6 +51,11 @@ Default: 2048 .PARAMETER EmailAddress The email address used to request the certificates and receive a notification when the certificates (almost) expires +.PARAMETER GetValuesFromExistingCertificate + Set this switch to extract the CommonName (ad if present also the SAN records) from an existing certificate already present on the Citrix ADC. + If you set this switch -ExistingCertificateName must also be configured. +.PARAMETER ExistingCertificateName + The name of an existing certificate on the ADC. Us the CertKeyName (Name visible in the GUI, not the filename) .PARAMETER CN (Common Name) The Primary (first) dns record for the certificate Example: "domain.com" @@ -90,12 +95,12 @@ Removing ALL the test certificates from your ADC. .NOTES File Name : GenLeCertForNS.ps1 - Version : v2.4.0 + Version : v2.4.1 Author : John Billekens Requires : PowerShell v5.1 and up ADC 11.x and up Run As Administrator - Posh-ACME 3.5.0 (Will be installed via this script) Thank you @rmbolger for providing the HTTP validation method! + Posh-ACME 3.8.0 (Will be installed via this script) Thank you @rmbolger for providing the HTTP validation method! Microsoft .NET Framework 4.7.1 or later (when using Posh-ACME/WildCard certificates) .LINK https://blog.j81.nl @@ -282,7 +287,7 @@ param( #requires -version 5.1 #requires -runasadministrator -$ScriptVersion = "v2.4.0" +$ScriptVersion = "v2.4.1" #region Functions From 059d626ac185c2987948215ffb0b2acd4bb33ad6 Mon Sep 17 00:00:00 2001 From: John B Date: Fri, 25 Oct 2019 09:10:34 +0200 Subject: [PATCH 2/3] Update version.txt Updated version numbers --- version.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/version.txt b/version.txt index 6d1270d..de8de8d 100644 --- a/version.txt +++ b/version.txt @@ -1,3 +1,3 @@ branch;version -master;2.4.0 -dev;2.4.0 +master;2.4.1 +dev;2.4.1 From 798a6a063755bcae82551bd5d48403adb9f0c3ee Mon Sep 17 00:00:00 2001 From: John B Date: Fri, 25 Oct 2019 09:14:49 +0200 Subject: [PATCH 3/3] Update GenLeCertForNS.ps1 Fixed help text --- GenLeCertForNS.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GenLeCertForNS.ps1 b/GenLeCertForNS.ps1 index b893c30..c20ccbc 100644 --- a/GenLeCertForNS.ps1 +++ b/GenLeCertForNS.ps1 @@ -187,6 +187,8 @@ param( [Parameter(ParameterSetName = "LECertificates", Mandatory = $false)] [string[]]$SAN = @(), + [Parameter(ParameterSetName = "LECertificates", Mandatory = $false)] + [Parameter(ParameterSetName = "GetExisting", Mandatory = $false)] [string]$FriendlyName = $CN, [Parameter(ParameterSetName = "LECertificates", Mandatory = $false)]