Jaykul / Tunable-SSL-Validator

A .Net class and PowerShell module to enable best practices for SSL validation even with self-signed certificates.
BSD 2-Clause "Simplified" License
57 stars 14 forks source link

New functions to control the console standard output generated by ApproveLastRequest #5

Closed joel74 closed 9 years ago

joel74 commented 9 years ago

I added a public boolean ShowConsoleStandardOutput which controls whether the ApproveLastRequest() method writes its results out to console standard output or not.

ShowConsoleStandardOutput is set to true by default when calling SetValidator().

There are three new PowerShell functions (Disable-ShowConsoleStandardOutput, Enable-ShowConsoleStandardOutput, and Get-ShowConsoleStandardOutput) for manipulating the value of the bool from PowerShell.

I also added a new function called Get-IgnoreChainErrors to retrieve the current IgnoreChainErrors value

Jaykul commented 9 years ago

I think this is fine. In a slightly more "real world" scenario, we'd probably hook all the output into log4net (or something) so we can control it better without passing parameters, but for the sake of this demo, it's fine like this :-)