commands/Add-VITrustedCertificate.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
using module VMware.PowerCLI.Sdk.Types
using module VMware.PowerCLI.VCenter.Types.CertificateManagement
using namespace VMware.VimAutomation.ViCore.Types.V1
using namespace VMware.VimAutomation.ViCore.Types.V1.Inventory
using namespace System.Security.Cryptography.X509Certificates
using namespace VMware.VimAutomation.Sdk.Util10Ps.BaseCmdlet

. (Join-Path $PSScriptRoot "../utils/Connection.ps1")
. (Join-Path $PSScriptRoot "../utils/Report-CommandUsage.ps1")
. (Join-Path $PSScriptRoot "../types/builders/New-TrustedCertificateInfo.ps1")

<#
.SYNOPSIS
 
This cmdlet adds a certificate or certificate chain to the vCenter Server or ESXi trusted stores.
 
.DESCRIPTION
 
This cmdlet adds a certificate or certificate chain to the vCenter Server or ESXi trusted stores.
 
To use this cmdlet, you must connect to vCenter Server through the Connect-VIServer cmdlet.
 
Note: The certificate or certificate chain will be added to both the vCenter Server instance and the connected ESXi hosts unless you use the VCenterOnly or EsxOnly parameters.
 
.PARAMETER PemCertificateOrChain
 
Specifies a certificate or certificate chain in PEM format to be added to the vCenter Server and/or ESXi trusted stores.
 
.PARAMETER X509Certificate
 
Specifies a certificate as an X509Certificate object to be added to the vCenter Server and/or ESXi trusted stores.
 
.PARAMETER X509Chain
 
Specifies a certificate chain as an X509Chain object to be added to the vCenter Server and/or ESXi trusted stores.
 
.PARAMETER VMHost
 
Specifies one or more ESXi hosts to whose trusted stores you want to add the certificate or certificate chain.
 
.PARAMETER VCenterOnly
 
Specifies that the certificate or certificate chain must be added only to the trusted store of the vCenter Server instance.
 
.PARAMETER EsxOnly
 
Specifies that the certificate or certificate chain must be added only to the trusted store of the ESXi hosts.
 
 
.EXAMPLE
PS C:\> $caPem = Get-Content ca.pem -Raw
PS C:\> Add-VITrustedCertificate -PemCertificateOrChain $caPem
 
Adds the certificate from ca.pem to the trusted certificate stores of the vCenter Server and all the ESXi hosts connected to the vCenter system.
 
 
.EXAMPLE
PS C:\> $caPem = Get-Content ca.pem -Raw
PS C:\> Add-VITrustedCertificate -PemCertificateOrChain $caPem -VCenterOnly
 
Adds the certificate from ca.pem to the trusted certificate store of the vCenter Server system.
 
 
.EXAMPLE
PS C:\> $caPem = Get-Content ca.pem -Raw
PS C:\> Add-VITrustedCertificate -PemCertificateOrChain $caPem -EsxOnly
 
Adds the certificate from ca.pem to the trusted certificate stores of the ESXi hosts of the vCenter Server system, but not to the vCenter itself.
 
 
.EXAMPLE
PS C:\> $caPem = Get-Content ca.pem -Raw
PS C:\> Add-VITrustedCertificate -VMHost 'MyHost' -PemCertificateOrChain $caPem
 
Adds the certificate from ca.pem to the trusted certificate store of the 'MyHost' ESXi host.
 
 
.OUTPUTS
 
One or more TrustedCertificateInfo objects
 
 
.LINK
 
https://developer.vmware.com/docs/powercli/latest/vmware.powercli.vcenter/commands/add-vitrustedcertificate
 
#>

function Add-VITrustedCertificate {
   [CmdletBinding(
      ConfirmImpact = "High",
      DefaultParameterSetName = "Default",
      SupportsShouldProcess = $True)]
   [OutputType([TrustedCertificateInfo])]
   Param (
      [Parameter(ValueFromPipeline = $true)]
      [String[]]
      $PemCertificateOrChain,

      [Parameter()]
      [X509Certificate[]]
      $X509Certificate,

      [Parameter()]
      [X509Chain[]]
      $X509Chain,

      [Parameter(Mandatory = $true, ParameterSetName = "PerEsx")]
      [ObnArgumentTransformation([VMHost])]
      [VMHost[]]
      $VMHost,

      [Parameter(Mandatory = $true, ParameterSetName = 'VCenterOnly')]
      [switch]
      $VCenterOnly,

      [Parameter(Mandatory = $true, ParameterSetName = 'EsxOnly')]
      [switch]
      $EsxOnly,

      [Parameter()]
      [ObnArgumentTransformation([VIServer], Critical = $true)]
      [VIServer]
      $Server
   )

   Begin {
      Report-CommandUsage $MyInvocation
      
      # Handle Server obn first
      if($Server) {
         $resolvedServer = Resolve-ObjectByName `
            -Object $Server `
            -Type ([VIServer]) `
            -OneObjectExpected

         $Server = [VIServer] $resolvedServer
      }

      $activeServer = GetActiveServer($Server)
      ValidateApiVersionSupported -server $activeServer -major 7 -minor 0

      # Collect OBN for parameter 'VMHost'
      if($VMHost) {
         $resolvedVMHost = Resolve-ObjectByName -Object $VMHost `
            -Type ([VMHost]) `
            -CollectorCmdlet 'Get-VMHost' `
            -OneOrMoreObjectsExpected `
            -Server $activeServer

         $VMHost = [VMHost[]] $resolvedVMHost
      }

      # Validate that only one of:
      # PemCertificateOrChain
      # X509Certificate
      # X509Chain
      # is present

      $counter = 0
      if ($PemCertificateOrChain) {
         $PemCertificateOrChain | Confirm-PemContainsCertificates
         $counter += 1
      }

      if ($X509Certificate) {
         $counter += 1
      }

      if ($X509Chain) {
         $counter += 1
      }

      if ($counter -eq 0) {
         Write-PowerCLIError `
            -ErrorObject 'One of the parameters PemCertificateOrChain, X509Certificate or X509Chain must be supplied.' `
            -Terminating
      } elseif ($counter -gt 1) {
         Write-PowerCLIError `
            -ErrorObject 'Only one of the parameters PemCertificateOrChain, X509Certificate or X509Chain must be supplied.' `
            -Terminating
      }
   }

   Process {
      # Validate all objects are from the same server
      if($VMHost) {
         $VMHost | ValidateSameServer -ExpectedServer $activeServer
      }

      $updateVc = $PsCmdlet.ParameterSetName -eq 'Default' -or `
         ($PsCmdlet.ParameterSetName -eq 'VCenterOnly' -and $VCenterOnly.ToBool())

      $updateEsx = $PsCmdlet.ParameterSetName -eq 'Default' -or `
         ($PsCmdlet.ParameterSetName -eq 'EsxOnly' -and $EsxOnly.ToBool())

      if ($updateEsx) {
         $tempVMHost = Get-VMHost -Server $activeServer
         if ($tempVMHost) {
            $VMHost = $tempVMHost
         }
      }

      $pemCertArray = [System.Collections.ArrayList]::new()

      if ($PemCertificateOrChain) {
         $PemCertificateOrChain | Read-PemCertificate | % {
            $pemCertArray.Add($_) | Out-Null
         }
         if ($pemCertArray.Count -eq 0) {
            Write-PowerCLIError `
               -ErrorObject 'No certificate found in the PemCertificateOrChain.' `
               -ErrorId "PowerCLI_VITrustedCertificate_NoCertificateFoundInPemCertificateOrChain"
         }
      } elseif ($X509Certificate) {
         $X509Certificate | ConvertTo-PemCertificate | % {
            $pemCertArray.Add($_) | Out-Null
         }
      } elseif ($X509Chain) {
         $X509Chain | % { $_.ChainElements } | % {
            ConvertTo-PemCertificate -X509Certificate $_.Certificate
         } | % {
            $pemCertArray.Add($_) | Out-Null
         }
         if ($pemCertArray.Count -eq 0) {
            Write-PowerCLIError `
               -ErrorObject 'No certificates found in the X509Chain' `
               -ErrorId "PowerCLI_VITrustedCertificate_NoCertificateFoundInx509Chain"
         }
      }

      if ($pemCertArray.Count -gt 0) {
         $vcName = ''
         if ($updateVc) {
            $vcName = $activeServer.Name
         }

         $shouldProcessDescription = Get-ShouldProcessMessage $pemCertArray $vcName ($VMHost | Select-Object -ExpandProperty Name)
         $shouldProcessWarning = Get-ShouldProcessMessage $pemCertArray $vcName ($VMHost | Select-Object -ExpandProperty Name) -warning

         if($PSCmdlet.ShouldProcess(
            $shouldProcessDescription,
            $shouldProcessWarning,
            "Add certificate")) {

            if ($updateVc) {
               $apiServer = GetApiServer($activeServer)
               
               try {
                  $trustedChainIds =
                     $pemCertArray | % {
                        Initialize-CertificateManagementX509CertChain -CertChain ([string[]]@($_))
                     } | `
                     Initialize-CertificateManagementVcenterTrustedRootChainsCreateSpec | `
                     Invoke-CreateCertificateManagementTrustedRootChains `
                        -Server $apiServer `
                        -ErrorAction:Stop

                  Get-VITrustedCertificate `
                     -Id ($trustedChainIds | % {
                        $UidUtil.Append($activeServer.Uid, "ViTrustedCertificate", $_)
                     }) | `
                     Write-Output
               } catch {
                  Write-PowerCLIError `
                     -ErrorObject $_ `
                     -ErrorId "PowerCLI_VITrustedCertificate_FailedToAddVcTrustChains"
               }
            }

            if ($VMHost) {
               foreach ($currentVMHost in $VMHost) {
                  try {
                     $certificateManager = Get-View $currentVMHost.ExtensionData.ConfigManager.CertificateManager -Server $activeServer
                     $addingCertificatesThumbprints = [System.Collections.ArrayList]::new()
                     $trustedCertificates = [System.Collections.ArrayList]::new()

                     $pemCertArray | % {
                        $trustedCertificates.Add($_) | Out-Null
                        $_ | ConvertTo-X509Certificate | %{
                           $addingCertificatesThumbprints.Add($_.Thumbprint) | Out-Null
                        }
                     }

                     $currentTrustedCertificates = $certificateManager.ListCACertificates()
                     if ($currentTrustedCertificates) {
                        $trustedCertificates.AddRange($currentTrustedCertificates)
                     }

                     $certificateManager.ReplaceCACertificatesAndCRLs(
                        $trustedCertificates.ToArray(), $null) | Out-Null

                     Get-ViTrustedCertificate -Id ($addingCertificatesThumbprints | % {
                        $UidUtil.Append($currentVMHost.Uid, "ViTrustedCertificate", $_)
                     })
                  } catch {
                     Write-PowerCLIError `
                        -ErrorObject $_ `
                        -ErrorId "PowerCLI_VITrustedCertificate_FailedToAddEsxTrustChains"
                  }
               }
            }
         }
      }
   }
}

function Read-PemCertificate {
   param(
      [Parameter(ValueFromPipeline = $true)]
      [string]
      $pem
   )

   $beginStr = '-----BEGIN CERTIFICATE-----'
   $endStr = '-----END CERTIFICATE-----'
   $beginIndex = $pem.IndexOf($beginStr)
   while ($beginIndex -ge 0) {
      $endIndex = $pem.IndexOf($endStr, $beginIndex)
      if ($endIndex -gt $beginIndex) {
         $pem.Substring($beginIndex, $endIndex + $endStr.Length - $beginIndex) | Write-Output
         $beginIndex = $pem.IndexOf($beginStr, $endIndex)
      } else {
         Write-PowerCLIError `
            -ErrorObject @"
The PEM:
---------------------------
$pem
---------------------------
Contains '$beginStr' with missing '$endStr'.
"@
 `
            -ErrorId 'PowerCLI_VITrustedCertificate_MissingEndCertificate'
         # END CERTIFICATE not found no need to continue
         break
      }
   }
}

function Get-ShouldProcessMessage {
   param(
      [string[]]
      $pem,

      [string]
      $vcName,

      [string[]]
      $hostName,

      [switch]
      $warning
   )

   $sb = [System.Text.StringBuilder]::new()

   if ($warning.ToBool()) {
      $sb.Append("Are you sure you want to add ") | Out-Null
   } else {
      $sb.Append("Adding ") | Out-Null
   }

   $pem | ConvertTo-X509Certificate | % {
      $sb.Append("'") | Out-Null
      $sb.Append($_.GetNameInfo([X509NameType]::SimpleName, $false)) | Out-Null
      $sb.Append("'") | Out-Null
      $sb.Append(", ") | Out-Null
   }
   $sb.Remove($sb.Length - 2, 2) | Out-Null

   $sb.Append(" certificate") | Out-Null
   if ($pem.Length -gt 1) {
      $sb.Append("s") | Out-Null
   }
   $sb.Append(" to") | Out-Null

   if(-not [string]::IsNullOrEmpty($vcName)) {
      $sb.Append(" vCenter Server '$vcName'") | Out-Null
      if ($hostName) {
         $sb.Append(" and") | Out-Null
      }
   }

   if ($hostName) {
      $sb.Append(" host") | Out-Null
      if ($hostName.Length -gt 1) {
         $sb.Append("s") | Out-Null
      }
      $sb.Append(" ") | Out-Null

      $hostName | % {
         $sb.Append("'$_', ") | Out-Null
      }

      $sb.Remove($sb.Length - 2, 2) | Out-Null
   }

   if ($warning.ToBool()) {
      $sb.Append("?") | Out-Null
   } else {
      $sb.Append(".") | Out-Null
   }

   $sb.ToString() | Write-Output
}

function Confirm-PemContainsCertificates {
   param(
      [Parameter(Mandatory = $true, ValueFromPipeline = $true, Position = 0)]
      [string[]]
      $Pem
   )

   return

   $Pem | %{
      if (!$_.Contains('-----BEGIN CERTIFICATE-----') -or `
         !$_.Contains('-----END CERTIFICATE-----')) {
         Write-PowerCLIError `
            -ErrorObject "PemCertificateOrChain must contain a PEM certificate." `
            -Terminating
      }
   }
}

# SIG # Begin signature block
# MIIi/AYJKoZIhvcNAQcCoIIi7TCCIukCAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAA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