authentication - How can you add a Certificate to WebClient in Powershell -
i wan't examine webpage requires client side certificate authentication. how can provide cert certstore webrequest: there way specify in credentials odr within proxy? $webclient = new-object net.webclient # next 5 lines required if network has proxy server $webclient.credentials = [system.net.credentialcache]::defaultcredentials if($webclient.proxy -ne $null) { $webclient.proxy.credentials = ` [system.net.credentialcache]::defaultnetworkcredentials } # main call $output = $webclient.downloadstring("$url") ps: maybe helps: how can add certificate webclient (c#)? don't it.. ;-) using new add-type functionality in powershell v2, can craft custom class can use make typical webrequest. have included method on custom class allow add certificates can used authentication. ps c:\> $def = @" public class clientcertwebclient : system.net.webclient { system.net.httpwebrequest request = null; system.security.cryptography.x5...