AzStackHci.EnvironmentChecker.PortableUtilities.psm1

<#
    Small portable lightweight/standalone functions that are required to be called as signed local modules
    for the purpose of satisfying the Constraint Language Mode.
#>


function Get-SslCertificateChain
{
    <#
    .SYNOPSIS
        Retrieve remote ssl certificate & chain from https endpoint for Desktop and Core
    .NOTES
        Credit: https://github.com/markekraus
    #>

    [CmdletBinding()]
    param (
        [system.uri]
        $url,

        [Parameter()]
        [string]
        $Proxy,

        [Parameter()]
        [pscredential]
        $ProxyCredential
    )
    try
    {
        $cs = @'
    using System;
    using System.Collections.Generic;
    using System.Net.Http;
    using System.Net.Security;
    using System.Security.Cryptography.X509Certificates;
 
    namespace CertificateCapture
    {
        public class Utility
        {
            public static Func<HttpRequestMessage,X509Certificate2,X509Chain,SslPolicyErrors,Boolean> ValidationCallback =
                (message, cert, chain, errors) => {
                    CapturedCertificates.Clear();
                    var newCert = new X509Certificate2(cert);
                    var newChain = new X509Chain();
                    newChain.Build(newCert);
                    CapturedCertificates.Add(new CapturedCertificate(){
                        Certificate = newCert,
                        CertificateChain = newChain,
                        PolicyErrors = errors,
                        URI = message.RequestUri
                    });
                    return true;
                };
            public static List<CapturedCertificate> CapturedCertificates = new List<CapturedCertificate>();
        }
 
        public class CapturedCertificate
        {
            public X509Certificate2 Certificate { get; set; }
            public X509Chain CertificateChain { get; set; }
            public SslPolicyErrors PolicyErrors { get; set; }
            public Uri URI { get; set; }
        }
    }
'@


        try
        {
            if (-not ('CertificateCapture.Utility' -as [type]))
            {
                if ($PSEdition -ne 'Core')
                {
                    Add-Type -AssemblyName System.Net.Http
                    Add-Type $cs -ReferencedAssemblies System.Net.Http
                }
                else
                {
                    Add-Type $cs
                }
            }
        }
        catch
        {
            if ($_.Exception.Message -notmatch 'Definition of new types is not supported in this language mode')
            {
                throw "Language mode does not allow this test Error: $_"
            }
        }

        $Certs = [CertificateCapture.Utility]::CapturedCertificates
        $Handler = [System.Net.Http.HttpClientHandler]::new()
        if ($Proxy)
        {
            $Handler.Proxy = New-Object System.Net.WebProxy($proxy)
            if ($proxyCredential)
            {
                $Handler.DefaultProxyCredentials = $ProxyCredential
            }
        }
        $Handler.ServerCertificateCustomValidationCallback = [CertificateCapture.Utility]::ValidationCallback
        $Client = [System.Net.Http.HttpClient]::new($Handler)
        $null = $Client.GetAsync($url).Result
        return $Certs.CertificateChain
    }
    catch
    {
        throw $_
    }
}

function Test-Elevation
{
    ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')
}


function Install-UtilityModule
{
    <#
    .SYNOPSIS
        Install EnvironmentChecker utility module
    .DESCRIPTION
        Installs EnvironmentChecker utility module if module doesn't exist on remote system.
    #>

    [CmdletBinding()]
    param (
        [Parameter()]
        [System.Management.Automation.Runspaces.PSSession[]]
        $PsSession,

        [Parameter(Mandatory = $true)]
        [string]
        $cmdletName
    )
    try
    {
        foreach ($Session in $PsSession)
        {
            Write-Verbose "Checking modules exists on $($Session.ComputerName)"
            $checkSslUtilSb = {
                # attempt to import for module and check for desired cmdlet, if not present, return temp path
                Import-Module -Name AzStackHci.EnvironmentChecker -Force -ErrorAction SilentlyContinue -Scope Local
                if (-not (Get-Command -Name $args[0] -ErrorAction SilentlyContinue))
                {
                    return $env:TEMP
                }
            }
            $checkSslUtil = Invoke-Command -Session $Session -ScriptBlock $checkSslUtilSb -ArgumentList $cmdletName
            Write-Verbose ("{0} module exists: {1}" -f $Session.ComputerName,(-not [bool]$checkSslUtil))
            if ($checkSslUtil)
            {
                Write-Verbose "Copying module ($PSScriptRoot\AzStackHci.EnvironmentChecker.PortableUtilities.psm1) to $($Session.ComputerName) under $checkSslUtil"
                Copy-Item -Path "$PSScriptRoot\AzStackHci.EnvironmentChecker.PortableUtilities.psm1" -Destination "$checkSslUtil\AzStackHci.EnvironmentChecker.PortableUtilities.psm1" -Force -ToSession $Session
                Write-Verbose "Importing module in session on $($Session.ComputerName)"
                Invoke-Command -Session $Session -ScriptBlock {
                    Import-Module "$env:TEMP\AzStackHci.EnvironmentChecker.PortableUtilities.psm1" -Force
                }
            }
            else
            {
                Write-Verbose "Module exists on $($Session.ComputerName)"
            }
        }
    }
    catch
    {
        throw "Failed to install EnvironmentChecker module. Error: $($_.exception)"
    }
}

function Remove-UtilityModule
{
    <#
    .SYNOPSIS
        Remove EnvironmentChecker module
    .DESCRIPTION
        Removes EnvironmentChecker module
    #>

    [CmdletBinding()]
    param (
        [Parameter()]
        [System.Management.Automation.Runspaces.PSSession[]]
        $PsSession
    )
    try
    {
        foreach ($Session in $PsSession)
        {
            Write-Verbose "Removing module from $($Session.ComputerName)"
            Invoke-Command -Session $Session -ScriptBlock {
                Remove-Item -Path "$env:TEMP\AzStackHci.EnvironmentChecker.PortableUtilities.psm1" -Force -ErrorAction SilentlyContinue
            }
        }
    }
    catch
    {
        Write-Verbose "Failed to remove EnvironmentChecker module. Error: $($_.exception)"
    }
}

Export-ModuleMember -Function Install-UtilityModule
Export-ModuleMember -Function Remove-UtilityModule
Export-ModuleMember -Function Test-Elevation
Export-ModuleMember -Function Get-SslCertificateChain
# SIG # Begin signature block
# MIInkwYJKoZIhvcNAQcCoIInhDCCJ4ACAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCDmnfCRdtSym3+D
# dNnM7vGFsRtqt5NTsXdSVCO1E9JnU6CCDXYwggX0MIID3KADAgECAhMzAAADTrU8
# esGEb+srAAAAAANOMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD
# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy
# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p
# bmcgUENBI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