You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Path to certficate private key in PEM-encoding; required if serverCertificateEncoded is not empty.
14316
14316
#>
14317
14317
function Global:Update-SgwManagementCertificate {
14318
-
[CmdletBinding(DefaultParameterSetName="String")]
14318
+
[CmdletBinding(DefaultParameterSetName="Path")]
14319
14319
14320
14320
PARAM (
14321
14321
[parameter(Mandatory = $False,
@@ -14333,7 +14333,7 @@ function Global:Update-SgwManagementCertificate {
14333
14333
Position = 2,
14334
14334
ValueFromPipelineByPropertyName = $True,
14335
14335
ParameterSetName = "Path",
14336
-
HelpMessage = "Path to X.509 server certificate in PEM-encoding; omit or null if using default certificates.")][System.IO.FileInfo]$ServerCertificatePath,
14336
+
HelpMessage = "Path to X.509 server certificate in PEM-encoding; omit or null if using default certificates.")][Alias("CertFile")][SString]$ServerCertificatePath,
14337
14337
[parameter(Mandatory = $False,
14338
14338
Position = 3,
14339
14339
ValueFromPipelineByPropertyName = $True,
@@ -14343,7 +14343,7 @@ function Global:Update-SgwManagementCertificate {
14343
14343
Position = 4,
14344
14344
ValueFromPipelineByPropertyName = $True,
14345
14345
ParameterSetName = "Path",
14346
-
HelpMessage = "Path to intermediate CA certificate bundle in concatenated PEM-encoding; omit or null when there is no intermediate CA.")][System.IO.FileInfo]$CaBundlePath,
14346
+
HelpMessage = "Path to intermediate CA certificate bundle in concatenated PEM-encoding; omit or null when there is no intermediate CA.")][Alias("FullChainFile")][String]$CaBundlePath,
14347
14347
[parameter(Mandatory = $False,
14348
14348
Position = 5,
14349
14349
ValueFromPipelineByPropertyName = $True,
@@ -14353,7 +14353,7 @@ function Global:Update-SgwManagementCertificate {
14353
14353
Position = 6,
14354
14354
ValueFromPipelineByPropertyName = $True,
14355
14355
ParameterSetName = "Path",
14356
-
HelpMessage = "Path to certficate private key in PEM-encoding; required if serverCertificateEncoded is not empty.")][System.IO.FileInfo]$PrivateKeyPath
14356
+
HelpMessage = "Path to certficate private key in PEM-encoding; required if serverCertificateEncoded is not empty.")][Alias("KeyFile")][String]$PrivateKeyPath
14357
14357
)
14358
14358
14359
14359
Begin {
@@ -14385,7 +14385,7 @@ function Global:Update-SgwManagementCertificate {
14385
14385
$Method = "POST"
14386
14386
14387
14387
if ($ServerCertificatePath) {
14388
-
if ($ServerCertificatePath.Exists) {
14388
+
if ([System.IO.FileInfo]::new($ServerCertificatePath).Exists) {
Path to certficate private key in PEM-encoding; required if serverCertificateEncoded is not empty.
14518
14518
#>
14519
14519
function Global:Update-SgwObjectCertificate {
14520
-
[CmdletBinding(DefaultParameterSetName="String")]
14520
+
[CmdletBinding(DefaultParameterSetName="Path")]
14521
14521
14522
14522
PARAM (
14523
14523
[parameter(Mandatory = $False,
@@ -14535,7 +14535,7 @@ function Global:Update-SgwObjectCertificate {
14535
14535
Position = 2,
14536
14536
ValueFromPipelineByPropertyName = $True,
14537
14537
ParameterSetName = "Path",
14538
-
HelpMessage = "Path to X.509 server certificate in PEM-encoding; omit or null if using default certificates.")][System.IO.FileInfo]$ServerCertificatePath,
14538
+
HelpMessage = "Path to X.509 server certificate in PEM-encoding; omit or null if using default certificates.")][Alias("CertFile")][String]$ServerCertificatePath,
14539
14539
[parameter(Mandatory = $False,
14540
14540
Position = 3,
14541
14541
ValueFromPipelineByPropertyName = $True,
@@ -14545,7 +14545,7 @@ function Global:Update-SgwObjectCertificate {
14545
14545
Position = 4,
14546
14546
ValueFromPipelineByPropertyName = $True,
14547
14547
ParameterSetName = "Path",
14548
-
HelpMessage = "Path to intermediate CA certificate bundle in concatenated PEM-encoding; omit or null when there is no intermediate CA.")][System.IO.FileInfo]$CaBundlePath,
14548
+
HelpMessage = "Path to intermediate CA certificate bundle in concatenated PEM-encoding; omit or null when there is no intermediate CA.")][Alias("FullChainFile")][String]$CaBundlePath,
14549
14549
[parameter(Mandatory = $False,
14550
14550
Position = 5,
14551
14551
ValueFromPipelineByPropertyName = $True,
@@ -14555,7 +14555,7 @@ function Global:Update-SgwObjectCertificate {
14555
14555
Position = 6,
14556
14556
ValueFromPipelineByPropertyName = $True,
14557
14557
ParameterSetName = "Path",
14558
-
HelpMessage = "Path to certficate private key in PEM-encoding; required if serverCertificateEncoded is not empty.")][System.IO.FileInfo]$PrivateKeyPath
14558
+
HelpMessage = "Path to certficate private key in PEM-encoding; required if serverCertificateEncoded is not empty.")][Alias("KeyFile")][String]$PrivateKeyPath
14559
14559
)
14560
14560
14561
14561
Begin {
@@ -14587,7 +14587,7 @@ function Global:Update-SgwObjectCertificate {
14587
14587
$Method = "POST"
14588
14588
14589
14589
if ($ServerCertificatePath) {
14590
-
if ($ServerCertificatePath.Exists) {
14590
+
if ([System.IO.FileInfo]::new($ServerCertificatePath).Exists) {
0 commit comments