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
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
#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\acsblob\old_sslblob.pfx -ExportToPath \certificates\acsblob\new_sslblob.pfx [<CommonParameters>]
 
.NOTES
The script expects the certificates in the same directory structure as the install: i.e.
\Certificates\
    \ACSblob
        \ssl.pfx
    \ADFS
        \ssl.pfx
The script requires the deploymentdata.json that will be used for deployment.
 
.LINK
 
#>


$mod = Import-Module $PSScriptRoot\PublicCertHelper.psd1 -Force -PassThru
Import-Module $PSScriptRoot\..\Microsoft.AzureStack.ReadinessChecker.Utilities.psm1 -Force
#setting global variable to true
$GLOBAL:standalone = $true
$ErrorActionPreference = 'Stop'

function Test-AzsCertificateFolderStructure {
    param ([switch]$UseADFS, $certificatePath, [switch]$extensionHostFeature = $false)
    # 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'
    }

    if ($extensionHostFeature) {
        $validContainers += @('Admin Extension Host', 'Public Extension Host')
    }

    # Check directory structure is valid
    $actualContainers = (Get-ChildItem -Path $certificatePath -Directory).Name
    if (-not $actualContainers) {
        Write-Error ("Invalid folder structure found in certificate folder {0}, ensure only required folders are present. `nRequired folders: {1}" -f $CertificatePath, ($validContainers -join ', '))
    }
    $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) 
        }
    }
}

function Invoke-AzsCertificateValidation {
    <#
    .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
    .EXAMPLE
        PS C:\> Import-Module .\Microsoft.AzureStack.CertificateValidation.psm1
        PS C:\> $password = Read-Host -Prompt "Enter PFX Password" -AsSecureString
        PS C:\> Invoke-AzsCertificateValidation -CertificatePath .\Certificates -pfxPassword $password -RegionName east -externalFQDN azurestack.contoso.com -IdentitySystem AAD
        Validates certificates are ready for Azure Stack Deployment and Secret Rotation
    .EXAMPLE
        PS C:\>$PaaSCertificates = @{
            'PaaSDBCert' = @{'pfxPath' = 'c:\certs\DBCert.pfx';'pfxPassword' = (ConvertTo-SecureString -String 'Password' -AsPlainText -Force)}
            'PaaSDefaultCert' = @{'pfxPath' = 'c:\certs\DefaultPaaSCert.pfx';'pfxPassword' = (ConvertTo-SecureString -String 'Password' -AsPlainText -Force)}
            'PaaSAPICert' = @{'pfxPath' = 'c:\certs\PaaSAPICert.pfx';'pfxPassword' = (ConvertTo-SecureString -String 'Password' -AsPlainText -Force)}
            'PaaSFTPCert' = @{'pfxPath' = 'c:\certs\PaaSFTPCert.pfx';'pfxPassword' = (ConvertTo-SecureString -String 'Password' -AsPlainText -Force)}
            'PaaSSSOCert' = @{'pfxPath' = 'c:\certs\PaaSSSOCert.pfx';'pfxPassword' = (ConvertTo-SecureString -String 'Password' -AsPlainText -Force)}
        }
        PS C:\>Invoke-AzsCertificateValidation -RegionName east -FQDN azurestack.contoso.com -paasCertificates $PaaSCertificates
        Validates PaaS Certificates are ready for PaaS installations on Azure Stack.
    .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
        Specifies the Azure Stack deployment deployment data JSON configuration file. Generally only available to the deployment team.
    .PARAMETER PaaSCertificates
        Specifies a hashtable containing path and password to DB, Default, API, FTP & SSO Paas Certificates. Each individual certificate is optional. See Get-Help Invoke-AzsCertificateValidation -examples for example structure.
    .PARAMETER ExternalFQDN
        Specifies the Azure Stack deployment's External FQDN, also aliased as ExternalFQDN and ExternalDomainName, must be valid DNSHostName
    .PARAMETER RegionName
        Specifies the Azure Stack deployment's region name when deploymentdata.json is not used, must be alphanumeric.
    .PARAMETER IdentitySystem
        Specifies the Azure Stack deployment's Identity System valid values, AAD or ADFS, for Azure Active Directory and Active Directory Federated Services respectively
    .PARAMETER ExtensionHostFeature
        Indicates whether to verify the certificates for extension host feature. If the boolean is $false, it will skip the verification for extension host feature.
    .PARAMETER CleanReport
        Specifies whether to purge the existing report and start again with a clean report. Execution history and validation data is lost for all Readiness Checker validations.
    .PARAMETER OutputPath
        Specifies custom path to save Readiness JSON report and Verbose log file.
    .LINK
        Deployment Certificate Validation - https://aka.ms/AzsValidateCerts
        PaaS Certificate Validation - https://aka.ms/AzsValidatePaaSCerts
        Azure Stack Readiness Checker Tool - https://aka.ms/AzsReadinessChecker
    .NOTES
     
    #>

    [CmdletBinding()]
    [Alias("Start-CertChecker", "Start-AzsCertChecker", "Start-AzureStackCertChecker", "CertChecker", "Invoke-AzureStackCertificateValidation")]
    Param(
        [Parameter(Mandatory = $false, HelpMessage = "Enter Path to Certificates Directory", ParameterSetName = "ValidateJSON")]
        [Parameter(Mandatory = $false, HelpMessage = "Enter Path to Certificates Directory", ParameterSetName = "Validate")]
        [ValidateScript( {Test-Path $_ -PathType Container})]
        [string] 
        $CertificatePath = ".\Certificates",

        [Parameter(Mandatory = $true, ParameterSetName = "Validate")]
        [Parameter(Mandatory = $true, ParameterSetName = "ValidatePaaS")]
        [ValidatePattern('(?# Region must be alphanumeric)^[a-zA-Z0-9]+$')]
        [string]
        $RegionName,

        [Parameter(Mandatory = $true, ParameterSetName = "Validate")]
        [Parameter(Mandatory = $true, ParameterSetName = "ValidatePaaS")]
        [Alias("ExternalDomainName", "FQDN")]
        [ValidateScript( {[System.Uri]::CheckHostName($_) -eq 'dns' <#FQDN must be valid DNSHostName#>})]
        [string]
        $ExternalFQDN,

        [Parameter(Mandatory = $true, ParameterSetName = "Validate", HelpMessage = "Enter Password for PFX Certificates as a secure string")]
        [Parameter(Mandatory = $true, ParameterSetName = "ValidateJSON", 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 = $true, HelpMessage = "Enter Path to DeploymentData.json", ParameterSetName = "ValidatePaaSJSON")]
        [ValidateScript( {Test-Path $_ -Include *.json})] 
        [string]
        $deploymentDataJSONPath,

        [Parameter(Mandatory = $true, ParameterSetName = "Validate")]
        [ValidateSet('AAD', 'ADFS')]
        [string]
        $IdentitySystem,

        [Parameter(Mandatory = $false, ParameterSetName = "Validate", HelpMessage = "Indicate whether to verify certificates for extension host feature.")]
        [Parameter(Mandatory = $false, ParameterSetName = "ValidateJSON", HelpMessage = "Indicate whether to verify certificates for extension host feature.")]
        [bool]
        $ExtensionHostFeature = $true,

        [Parameter(Mandatory = $true, ParameterSetName = "ValidatePaaS", HelpMessage = "Provide Hashtable with PFX path and password details for each PaaS Certificate. See Get-Help Invoke-AzsCertificateValidation -Examples")]
        [Parameter(Mandatory = $true, ParameterSetName = "ValidatePaaSJSON", HelpMessage = "Provide Hashtable with PFX path and password details for each PaaS Certificate. See Get-Help Invoke-AzsCertificateValidation -Examples")]
        [ValidateScript( { if ($false -in (Test-Path $_.values.pfxPath -include *.pfx)) {$false}else {$true} <#all PFX files paths should be accurate#>})]
        [hashtable]
        $PaaSCertificates,

        [Parameter(HelpMessage = "Directory path for log and report output")]
        [string]$OutputPath = "$ENV:TEMP\AzsReadinessChecker",

        [Parameter(HelpMessage = "Remove all previous progress and create a clean report")]
        [switch]$CleanReport = $false
    )

    $thisFunction = $MyInvocation.MyCommand.Name
    $GLOBAL:OutputPath = $OutputPath
    Import-Module $PSScriptRoot\..\Microsoft.AzureStack.ReadinessChecker.Reporting.psm1 -Force
    Write-Header -invocation $MyInvocation -params $PSBoundParameters

    # Get/Clean Existing Report
    $readinessReport = Get-AzsReadinessProgress -clean:$CleanReport
    $readinessReport = Add-AzsReadinessCheckerJob -report $readinessReport
    

    if ($PSCmdlet.ParameterSetName -like '*JSON') {
        if ($deploymentDataJSONPath) {
            # detect deployment type, get region name and fqdn, and set useADFS flag and directory name
            $deploymentDataJSON = ConvertTo-DeploymentData -path $deploymentDataJSONPath
            $RegionName = $deploymentDataJSON.DeploymentData.RegionName
            $externalFQDN = $deploymentDataJSON.DeploymentData.ExternalDomainFQDN
            if ($deploymentDataJSON.DeploymentData.UseAdfs) {
                $UseADFS = $true
                $dirName = 'ADFS'
            }
            elseif ($deploymentDataJSON.DeploymentData.InfraAzureEnvironment) {
                $UseADFS = $false
                $dirName = 'AAD'
            }
            else {
                Write-Error -message "Failed to parse identity store in DeploymentJSON"
            }
        }
    }
    else {
        switch ($IdentitySystem) {
            'ADFS' { $UseADFS = $true; $dirName = 'ADFS' }
            'AAD' { $UseADFS = $false; $dirName = 'AAD' }
        }
    }
    
    #Validate Deployment Certificates
    if ($PSCmdlet.ParameterSetName -in @('Validate', 'ValidateJSON')) {
        # Check the password
        Write-AzsReadinessLog -Message 'Checking password length for pfxPassword' -Type Info -Function $thisFunction
        Test-PasswordLength -MinimumCharactersInPassword 8 -Password $pfxPassword -CredentialDescription 'pfxPassword'
        Test-PasswordComplexity -Password $pfxPassword -CredentialDescription 'pfxPassword'
        Write-AzsReadinessLog -Message 'Password length for pfxPassword. Success' -Type Info -Function $thisFunction
    
        # Validate folder structure
        Test-AzsCertificateFolderStructure -UseADFS:$UseADFS -certificatePath $CertificatePath -extensionHostFeature:$ExtensionHostFeature
        
        # Tests external certs
        #make the path and copy the certs into a temp cache per the identity system as in deployment
        $testPath = new-item $ENV:USERPROFILE\AzsCertCache\$dirname -ItemType Directory -Force
        Get-ChildItem $CertificatePath -Recurse -Directory | Copy-Item -Destination $testPath -Recurse
        try {
            $TestAzsCertificatesResults = Test-AzureStackCerts -ExpectedDomainFQDN "$RegionName.$externalFQDN" `
                -CertificatePassword $pfxPassword `
                -UseADFS $UseADFS `
                -PfxFilesPath $testPath.Parent.FullName `
                -ExtensionHostFeature:$ExtensionHostFeature
        }
        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 https://aka.ms/AzsPKIRequirements."
            }
            #Write Summary to log
            Write-Log -Message "Validation Summary Results:" -Type Info -Function $thisfunction
            $TestAzsCertificatesResults | Out-File $PSScriptRoot\CertChecker.log -Append -Force
            #Clean up temp cache
            Remove-Item $ENV:USERPROFILE\AzsCertCache -Force -Recurse
        }
        # Copy the log certchecker log for now, until migration can occur.
        Copy-AzsReadinessLogging -ComponentLogFile CertChecker
        # Write results to readiness report
        $readinessReport.CertificateValidation.DeploymentCertificates = $TestAzsCertificatesResults
        $readinessReport = Close-AzsReadinessCheckerJob -report $readinessReport
        $readinessReport.CertificateValidation.DeploymentCertificates = Test-CertificateReuse -validationResult $readinessReport.CertificateValidation.DeploymentCertificates
    }


    # Validate PaaS Certificates
    if ($PSCmdlet.ParameterSetName -like '*PaaS*') {
        Write-Log -Message ("Starting Azure Stack PaaS Certificate Validation {0} " -f $mod.Version) -Type Info -Function $thisfunction
        $TestAzsPaaSCertificatesResults = foreach ($key in $PaaSCertificates.keys.where( {$_ -match 'PaaSFTPCert|PaaSSSOCert|PaaSAPICert|PaaSDBCert|PaaSDefaultCert'})) {
            $PaaSCertificate = $PaaSCertificates[$key]
            Test-PasswordLength -MinimumCharactersInPassword 8 -Password $PaaSCertificate.pfxPassword -CredentialDescription "$key's pfxPassword"
            Test-PasswordComplexity -Password $PaaSCertificate.pfxPassword -CredentialDescription "$key's pfxPassword"
            Write-AzsReadinessLog -Message "Password length for $key's pfxPassword. Success" -Type Info -Function $thisFunction
            
            Switch ($key) {
                'PaaSDBCert' { $ExpectedPrefix = '*.dbadapter' }
                'PaaSDefaultCert' { $ExpectedPrefix = '*.appservice', '*.scm.appservice', '*.sso.appservice' }
                'PaaSAPICert' { $ExpectedPrefix = 'api.appservice' }
                'PaaSFTPCert' { $ExpectedPrefix = 'ftp.appservice' }
                'PaaSSSOCert' { $ExpectedPrefix = 'sso.appservice' }
            }
            $pfxBinary = Get-Content -Path $PaaSCertificate.pfxPath -Encoding Byte
            $TestAzsPaaSCertificatesResult = Test-AzSCertificate -CertificateBinary $pfxBinary -CertificatePassword $PaaSCertificate.pfxPassword -expectedPrefix $ExpectedPrefix -ExpectedDomainFQDN "$RegionName.$externalFQDN" -IsPaaS
            
            #Add relative Path to result
            $pfxItem = Get-Item $PaaSCertificate.pfxPath
            $pfxShortPath = $pfxItem.Directory.Name + '\' + $pfxItem.name
            $TestAzsPaaSCertificatesResult | Foreach-Object {$_.Path = $pfxShortPath}
            $TestAzsPaaSCertificatesResult
        }

        # Copy the log certchecker log for now, until migration can occur.
        Copy-AzsReadinessLogging -ComponentLogFile CertChecker

        # Write results to readiness report
        $readinessReport.CertificateValidation.PaaSCertificates = $TestAzsPaaSCertificatesResults
        $readinessReport = Close-AzsReadinessCheckerJob -report $readinessReport
        $readinessReport.CertificateValidation.PaaSCertificates = Test-CertificateReuse -validationResult $readinessReport.CertificateValidation.PaaSCertificates
    }

    Write-AzsReadinessProgress -report $readinessReport
    Write-AzsReadinessReport -report $readinessReport
    Write-Footer -invocation $MyInvocation
}

function Repair-AzsPfxCertificate {
    <#
    .SYNOPSIS
        Re-package PFX files to remediate common packaging problems
    .DESCRIPTION
        Import PFX into local machine store, export the package ensuring chain export, encryption usage etc
    .EXAMPLE
        PS C:\> Repair-AzsPfxCertificate -PfxPassword $pfxPassword -PfxPath .\certificates\ACSBlob\ACSBlob.pfx -ExportPFXPath .\certificates\ACSBlob\ACSBlob_new.pfx
        Import ACSBlob PFX and re-exports it to the same folder with a new name.
    .PARAMETER PfxPassword
        Specifies the password associated with PFX certificate files.
    .PARAMETER PfxPath
        Specifies the path to a problematic certificate that requires import/export routine to fix, as indicated by certificate validation in this tool
    .PARAMETER ExportPFXPath
        Specifies the destination path for the resultant PFX file from import/export routine.
    .PARAMETER OutputPath
        Specifies custom path to save Readiness JSON report and Verbose log file.
    .LINK
        Remediate common issues for Azure Stack PKI certificates - https://aka.ms/AzsRemediateCerts
        Azure Stack Readiness Checker Tool - https://aka.ms/AzsReadinessChecker
    .NOTES
        General notes
    #>

    [CmdletBinding()]
    Param(
        [Parameter(Mandatory = $false, HelpMessage = "Enter Password for PFX Certificates as a secure string")]
        [securestring]
        $pfxPassword,

        [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(HelpMessage = "Directory path for log")]
        [string]$OutputPath = "$ENV:TEMP\AzsReadinessChecker"
    )

    $thisFunction = $MyInvocation.MyCommand.Name
    $GLOBAL:OutputPath = $OutputPath
    Import-Module $PSScriptRoot\..\Microsoft.AzureStack.ReadinessChecker.Reporting.psm1 -Force
    Write-Header -invocation $MyInvocation -params $PSBoundParameters

    #Verify PfxPassword is strong enough
    Write-AzsReadinessLog -Message 'Checking password length for pfxPassword' -Type Info -Function $thisFunction
    Test-PasswordLength -MinimumCharactersInPassword 8 -Password $pfxPassword -CredentialDescription 'pfxPassword'
    Test-PasswordComplexity -Password $pfxPassword -CredentialDescription 'pfxPassword'
    Write-AzsReadinessLog -Message 'Password length for pfxPassword. Success' -Type Info -Function $thisFunction

    Write-AzsReadinessLog -Message ("Starting Azure Stack Certificate Import/Export") -Type Info -Function $thisfunction -toscreen
    Write-AzsReadinessLog -Message "Importing PFX $pfxPath into Local Machine Store" -Type Info -Function $thisfunction -toscreen
    $certificate = Import-AzsCertificate -pfxPath $pfxPath -pfxPassword $pfxPassword
    if (-not $certificate) {
        Write-AzsReadinessLog -Message "Import Failed. Please review log." -Type Error -Function $thisfunction -toscreen
    }
    else {
        Write-AzsReadinessLog -Message "Exporting certificate to $exportPFXPath" -Type Info -Function $thisfunction -toscreen
        Export-AzsCertificate -filePath $ExportPFXPath -certPath $certificate -pfxPassword $pfxPassword
        Write-AzsReadinessLog -Message "Export complete. Removing certificate from the local machine store." -Type Info -Function $thisfunction -toscreen
        Remove-Item $certificate.pspath -Force
        if (-not (Test-Path $certificate.pspath)) {
            Write-AzsReadinessLog -Message "Removal complete." -Type Info -Function $thisfunction -toscreen
        }
        else {
            Write-AzsReadinessLog -Message ("Removal incomplete. Please manually remove {0}." -f $certificate.pspath) -Type Warning -Function $thisfunction -toscreen
        }
    }
    Copy-AzsReadinessLogging -ComponentLogFile CertChecker
    Write-Footer -invocation $MyInvocation
}
# S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