Adds a new function for a more flexible Certificate/CA verification. By setting $checkcertificate=$true in Get-RestCAList.ps1 the test-certificate cmdlet will be used to verify that the calling client cert is trusted by the server.
Intended to be used as a verification type.
Also decouples the server Certificate from the verification of the client cert and therefore adds support for PKI designs with more than one CA level.
Also uses Invoke-Expression (get-content -Path ...) instead of dot sourcing to speed up loading of subscripts ( dot sourcing seems to be very slow on PS 5.1).
I see further enhancements (for example dot sourcing on core (where it seems fast) and Invoke-Expression on 5.1. There are dot sourcing in more files that should be fixed too but I'll make an initial commit before I leave on vacation
Adds a new function for a more flexible Certificate/CA verification. By setting $checkcertificate=$true in Get-RestCAList.ps1 the test-certificate cmdlet will be used to verify that the calling client cert is trusted by the server.
Intended to be used as a verification type.
Also decouples the server Certificate from the verification of the client cert and therefore adds support for PKI designs with more than one CA level.
Also uses Invoke-Expression (get-content -Path ...) instead of dot sourcing to speed up loading of subscripts ( dot sourcing seems to be very slow on PS 5.1).
I see further enhancements (for example dot sourcing on core (where it seems fast) and Invoke-Expression on 5.1. There are dot sourcing in more files that should be fixed too but I'll make an initial commit before I leave on vacation