CertificateValidation/Microsoft.AzureStack.CertificateValidation.psm1

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
#Requires -RunAsAdministrator
#Requires -Version 5.0

<#############################################################
 # #
 # Copyright (C) Microsoft Corporation. All rights reserved. #
 # #
 #############################################################>


<#
 
.SYNOPSIS
This module is intended to be given to the customer along with their deploymentdata.json
in order to validate the certificates are suitable before Azure Stack deployment.
 
.DESCRIPTION
The validation checks the following:
    Read PFX. Checks for valid PFX file, correct password and warns if public information is not protected by the password.
    Signature Algorithm. Checks the Signature Algorithm is not SHA1
    Private Key. Checks the private key is present and is exported with the Local Machine attribute.
    Cert Chain. Checks certificate chain is in tact including for self-signed certificates.
    DNS Names. Checks the SAN contains relevant DNS names for each endpoint or if a supporting wildcard is present.
    Key Usage. Checks Key Usage contains Digital Signature and Key Encipherment and Enhanced Key Usage contains Server Authentication and Client Authentication.
    Key Size. Checks Key Size is 2048 or larger
    Chain Order. Checks the order of the other certificates making the chain is correct.
    Other Certificates. Ensure no other certificates have been packaged in PFX other than the relevant leaf certificate and its chain.
    No Profile. Checks a new user can load the PFX data without a user profile loaded, mimicking the behavior of gMSA accounts during certificate servicing.
 
 
.EXAMPLE
To Check certificates are ready for install run the following:
Import-Module .\Microsoft.AzureStack.CertificateValidation.psm1
$password = Read-Host -Prompt "Enter PFX Password" -AsSecureString
Start-CertChecker -CertificatePath .\Certificates\ -pfxPassword $password -deploymentDataJSONPath .\DeploymentData.json
 
To import/export certificates as indicated by the output of the above command
Import-Module .\Microsoft.AzureStack.CertificateValidation.psm1
$password = Read-Host -Prompt "Enter PFX Password" -AsSecureString
Start-CertChecker -pfxPassword $password -pfxPath \certificates\acs\old_ssl.pfx -ExportToPath \certificates\acs\new_ssl.pfx [<CommonParameters>]
 
.NOTES
The script expects the certificates in the same directory structure as the install: i.e.
\Certificates\
    \ACS
        \ssl.pfx
    \ADFS
        \ssl.pfx
The script requires the deploymentdata.json that will be used for deployment.
 
.LINK
 
#>


function Test-AzsCertificates{
    [CmdletBinding()]
    Param(
            [Parameter(Mandatory=$false,HelpMessage="Enter Path to Certificates Directory")]
            [string] 
            $CertificatePath = "$PSScriptRoot\Certificates",
            
            [Parameter(Mandatory=$true,HelpMessage="Enter Password for PFX Certificates as a secure string")]
            [securestring]
            $pfxPassword,
    
            [Parameter(Mandatory=$false,ParameterSetName="ValidateJSON")]
            [string]
            $deploymentDataJSONPath = "$PSScriptRoot\DeploymentData.json",

            [Parameter(Mandatory=$true,ParameterSetName="Validate")]
            [string]
            $RegionName,

            [Parameter(Mandatory=$true,ParameterSetName="Validate")]
            [string]
            $externalFQDN,

            [Parameter(Mandatory=$true,ParameterSetName="Validate")]
            [switch]
            $UseADFS
        )
    
    $thisFunction = $MyInvocation.MyCommand.Name
    
    if ($PSCmdlet.ParameterSetName -contains 'ValidateJSON')
    {
        Try
        {
            $deploymentDataJSON = Get-Content $deploymentDataJSONPath | ConvertFrom-Json
        }
        Catch
        { 
            if ($_.exception -like '*Invalid JSON primitive*') 
            {
                Write-Log -Message "Invalid JSON file provided $deploymentDataJSONPath" -type Error -function $thisFunction
            }
            break
        }

        # detect deployment type and get region name and fqdn.
        if ($deploymentDataJSON.DeploymentData.UseAdfs)
        {
            $UseADFS = $true
        }
        elseif ($deploymentDataJSON.DeploymentData.InfraAzureEnvironment)
        {
            $UseADFS = $false
        }
        else 
        {
            Write-Error -message "Failed to parse identity store in DeploymentJSON"
        }

        $RegionName = $deploymentDataJSON.DeploymentData.RegionName
        $externalFQDN = $deploymentDataJSON.DeploymentData.ExternalDomainFQDN
    }
    
    Test-AzsCertificateFolderStructure -UseADFS:$UseADFS -certificatePath $CertificatePath

    Try 
    {
        # Tests external certs
        #ADFS or not
        if ($UseADFS)
        {
            $dirName = 'ADFS'
        }
        else
        {
            $dirname = 'AAD'
        }

        #make the path and copy the certs into a temp cache per the identity system as in deployment
        $testPath = new-item $ENV:TEMP\Certchecker\certificates\$dirname -ItemType Directory -Force
        Get-ChildItem $CertificatePath -Recurse -Directory | Copy-Item -Destination $testPath -Recurse
        $allCertResults = Test-AzureStackCerts -ExpectedDomainFQDN "$RegionName.$externalFQDN" `
                                    -CertificatePassword $pfxPassword `
                                    -UseADFS $UseADFS `
                                    -PfxFilesPath $testPath.Parent.FullName
    }
    Catch 
    {
        $certResult = $_
    }
    Finally
    {
        if ($certResult)
        {
            Write-Host "Failed" -ForegroundColor Red
            Write-Host "Detail: $certResult"
            Write-Host "Please ensure the certificates meet all the requirements as per the companion guide."
        }

        #Write Summary to log
        Write-Log -Message "Validation Summary Results:" -Type Info -Function $thisfunction
        $allCertResults | Out-File $PSScriptRoot\CertChecker.log -Append -Force
        #Clean up temp cache
        Remove-Item $ENV:TEMP\Certchecker -Force -Recurse
        $allCertResults | Select-Object Result, FailureDetail, Test, Path
    }
}

function Test-AzsCertificateFolderStructure
{
    param ([switch]$UseADFS,$certificatePath)
    # set expected folder names
    if ($UseADFS)
    {
        $validContainers = 'ADFS','Graph','ACSBlob','ACSQueue','ACSTable','Admin Portal','ARM Admin','ARM Public','KeyVault','KeyVaultInternal','Public Portal'
    }
    else
    {
        $validContainers = 'ACSBlob','ACSQueue','ACSTable','Admin Portal','ARM Admin','ARM Public','KeyVault','KeyVaultInternal','Public Portal'
    }

    # Check directory structure is valid
    $actualContainers = (Get-ChildItem -Path $certificatePath -Directory).Name
    $compareContainers = Compare-Object -ReferenceObject $validContainers -DifferenceObject $actualContainers
    if ($compareContainers)
    {
        $invalidContainers = $compareContainers | Where-Object SideIndicator -eq '=>' | Select-Object -ExpandProperty InputObject
        $missingContainers = $compareContainers | Where-Object SideIndicator -eq '<=' | Select-Object -ExpandProperty InputObject
        if (-not $invalidContainers){$invalidContainers = '[none]'}
        if (-not $missingContainers){$missingContainers = '[none]'}
        Write-Error ("Invalid folder structure found in certificate folder {0}, ensure only required folders are present. `nRequired folders: {1} `nInvalid folders: {2} `nMissing folders: {3}" -f `
                    $CertificatePath, `
                    ($validContainers -join ', '), `
                    ($invalidContainers -join ', '), `
                    ($missingContainers -join ', ')
                    )
    }

    # Check there is only a single cert in each folder
    foreach ($folder in (Get-ChildItem -Path $certificatePath -Directory))
    {
        $pfxfiles = Get-ChildItem $folder.FullName -Recurse -Filter *.pfx -ErrorAction SilentlyContinue
        if ($pfxfiles.count -ne 1)
        {
            Write-Error ("The certificate Path '{0}' should only contain 1 certificate. `nEnsure all certificate folders only contain a single certificate." -f $folder.FullName) 
        }
    }
}
<#
    .SYNOPSIS
    Invoke-Microsoft.AzureStack.CertificateValidation is a standalone wrapper for "certchecker"
     
    .DESCRIPTION
    Either invokes certificate validation for Azure Stack public certificates or
    import/export routine to correct Azure Stack public certificates
     
    .PARAMETER CertificatePath
    Path to directory structure for Azure Stack Public Certificates.
    The path given for this parameter is expected to contain one of the following sets of sub-directories, each with a single pfx certificate:
    Identity System AAD:
        ACSBlob, ACSQueue, ACSTable, Admin Portal, ARM Admin, ARM Public, KeyVault, KeyVaultInternal, Public Portal
    Identity System ADFS:
        ADFS, Graph, ACSBlob, ACSQueue, ACSTable, Admin Portal, ARM Admin, ARM Public, KeyVault, KeyVaultInternal, Public Portal
 
    .PARAMETER pfxPassword
    A securestring containing a single password that is common across all certificates
     
    .PARAMETER deploymentDataJSONPath
    Path to deploymentdatajsonPath relevant for the Azure Stack Deployment.
     
    .PARAMETER pfxPath
    Path to pfx file that needs to be imported and exported for remediation purposes.
     
    .PARAMETER ExportToPath
    Path to place exported pfx file after import/export routine.
     
    .EXAMPLE
    To Check certificates are ready for install run the following:
        Import-Module .\Microsoft.AzureStack.CertificateValidation.psm1
        $password = Read-Host -Prompt "Enter PFX Password" -AsSecureString
        .\Start-CertChecker -CertificatePath .\Certificates\ -pfxPassword $password -deploymentDataJSONPath .\DeploymentData.json
 
    To import/export certificates as indicated by the output of the above command
        Import-Module .\Microsoft.AzureStack.CertificateValidation.psm1
        $password = Read-Host -Prompt "Enter PFX Password" -AsSecureString
        .\Start-CertChecker -pfxPassword $password -pfxPath \certificates\acs\old_ssl.pfx -ExportToPath \certificates\acs\new_ssl.pfx [<CommonParameters>]
     
    .NOTES
     
#>

function Invoke-AzureStackCertificateValidation
{
    [CmdletBinding()]
    [Alias("Start-CertChecker","Start-AzsCertChecker","Start-AzureStackCertChecker","CertChecker")]
    Param(
            [Parameter(HelpMessage="Enter Path to Certificates Directory")]
            [Parameter(Mandatory=$false,HelpMessage="Enter Path to Certificates Directory",ParameterSetName="ValidateJSON")]
            [Parameter(Mandatory=$false,HelpMessage="Enter Path to Certificates Directory",ParameterSetName="Validate")]
            [string] 
            $CertificatePath = "$PSScriptRoot\Certificates",
            
            [Parameter(Mandatory=$false,HelpMessage="Enter Password for PFX Certificates as a secure string")]
            [securestring]
            $pfxPassword,
    
            [Parameter(Mandatory=$true,HelpMessage="Enter Path to DeploymentData.json",ParameterSetName="ValidateJSON")]
            [Parameter(Mandatory=$false,ParameterSetName="ValidatePaaS")]
            [ValidateScript({Test-Path $_ -Include *.json})] 
            [string]
            $deploymentDataJSONPath,

            [Parameter(Mandatory=$true,ParameterSetName="Validate")]
            [Parameter(Mandatory=$false,ParameterSetName="ValidatePaaS")]
            [string]
            $RegionName,

            [Parameter(Mandatory=$true,ParameterSetName="Validate")]
            [Parameter(Mandatory=$false,ParameterSetName="ValidatePaaS")]
            [string]
            $externalFQDN,

            [Parameter(Mandatory=$true,ParameterSetName="Validate")]
            [switch]
            $UseADFS,

            [Parameter(Mandatory=$true,HelpMessage="Path to PFX on disk",ParameterSetName="ImportExport")]
            [ValidateScript({Test-Path $_ -Include *.pfx -PathType Leaf})]
            [string]
            $pfxPath,

            [Parameter(Mandatory=$true,HelpMessage="Destination Path for PFX export",ParameterSetName="ImportExport")]
            [ValidateScript({Test-Path -Path (split-path -Path $_ -Parent)})]
            [string]
            $ExportPFXPath,

            [Parameter(Mandatory=$true,ParameterSetName="ValidatePaaS")]
            [hashtable]
            $PaaSCertificates
        )

    $ErrorActionPreference = 'Stop'

    #setting global variable to true
    $GLOBAL:standalone = $true
    $thisFunction = $MyInvocation.MyCommand.Name
    $mod = Import-Module $PSScriptRoot\PublicCertHelper.psd1 -Force -PassThru
    if ($PSCmdlet.ParameterSetName -eq 'ValidateJSON')
    {
        Write-Host ("Starting Azure Stack Certificate Validation {0} " -f $mod.Version)
        Write-Log -Message ("Starting Azure Stack Certificate Validation {0} " -f $mod.Version) -Type Info -Function $thisfunction
        $TestAzsCertificatesResults = Test-AzsCertificates -pfxPassword $pfxPassword -CertificatePath $CertificatePath -deploymentDataJSONPath $deploymentDataJSONPath
        Write-Log -Message "Ending Certificate Validation" -Type Info -Function $thisfunction
        $TestAzsCertificatesResults
    }
    if ($PSCmdlet.ParameterSetName -eq 'Validate')
    {
        Write-Host ("Starting Azure Stack Certificate Validation {0} " -f $mod.Version)
        Write-Log -Message ("Starting Azure Stack Certificate Validation {0} " -f $mod.Version) -Type Info -Function $thisfunction
        $TestAzsCertificatesResults = Test-AzsCertificates -pfxPassword $pfxPassword -CertificatePath $CertificatePath -RegionName $RegionName -externalFQDN $externalFQDN -UseADFS:$UseADFS
        Write-Log -Message "Ending Certificate Validation" -Type Info -Function $thisfunction
        $TestAzsCertificatesResults
    }
    if ($PSCmdlet.ParameterSetName -eq 'ValidatePaaS')
    {
        Write-Host ("Starting Azure Stack Certificate Validation {0} " -f $mod.Version)
        Write-Log -Message ("Starting Azure Stack PaaS Certificate Validation {0} " -f $mod.Version) -Type Info -Function $thisfunction
        if ($deploymentDataJSONPath)
        {
            $deploymentDataJSON = Get-Content $deploymentDataJSONPath | ConvertFrom-Json
            $RegionName = $deploymentDataJSON.DeploymentData.RegionName
            $externalFQDN = $deploymentDataJSON.DeploymentData.ExternalDomainFQDN
        }
        $TestAzsPaaSCertificatesResults = foreach ($key in $PaaSCertificates.keys)
        {
            $PaaSCertificate = $PaaSCertificates[$key]
            Switch ($key)
            {
                'PaaSDBCert' { $ExpectedPrefix = '*.dbadapter' }
                'PaaSDefaultCert' { $ExpectedPrefix = '*.appservice','*.scm.appservice','*.sso.appservice' }
                'PaaSAPICert' { $ExpectedPrefix = 'api.appservice' }
                'PaaSFTPCert' { $ExpectedPrefix = 'ftp.appservice' }
                'PaaSSSOCert' { $ExpectedPrefix = 'sso.appservice' }
            }
            Test-AzSCertificate -PfxFile $PaaSCertificate.pfxPath -CertificatePassword $PaaSCertificate.pfxPassword -expectedPrefix $ExpectedPrefix -ExpectedDomainFQDN "$RegionName.$externalFQDN"
        }

        Write-Log -Message "Ending PaaS Certificate Validation" -Type Info -Function $thisfunction
        $TestAzsPaaSCertificatesResults
    }
    if ($PSCmdlet.ParameterSetName -eq 'ImportExport')
    {
        Write-Host ("Starting Azure Stack Certificate Import/Export {0} " -f $mod.Version)
        Write-Host "Importing PFX $pfxPath into Local Machine Store"
        $certificate = Import-AzsCertificate -pfxPath $pfxPath -pfxPassword $pfxPassword
        Write-Host "Exporting $($certificate.pspath) to $ExportPFXPath"
        Export-AzsCertificate -filePath $ExportPFXPath -certPath $certificate -pfxPassword $pfxPassword
        Write-Host "Export complete: $ExportPFXPath"
    }
}


# SIG # Begin signature block
# MIIdqAYJKoZIhvcNAQcCoIIdmTCCHZUCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR
# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQU34JttV0r+q3qDBRWHAlxcb8a
# jp2gghhUMIIEwjCCA6qgAwIBAgITMwAAAL+RbPt8GiTgIgAAAAAAvzANBgkqhkiG
# 9w0BAQUFADB3MQswCQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4G
# A1UEBxMHUmVkbW9uZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMSEw
# HwYDVQQDExhNaWNyb3NvZnQgVGltZS1TdGFtcCBQQ0EwHhcNMTYwOTA3MTc1ODQ5
# WhcNMTgwOTA3MTc1ODQ5WjCBsjELMAkGA1UEBhMCVVMxEzARBgNVBAgTCldhc2hp
# bmd0b24xE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