'da nasıl sertifika ekleyebilirim? İstemci Tarafı Sertifika Kimlik Doğrulaması gerektiren bir Web sayfasını incelemem. Cert'imi Certstore'dan Webquest'e nasıl sağlayabilirim: Bunu Proxy'deki Kimlik Bilgileri odrunda belirtmenin bir yolu var mı?WebClient'e bir Powershell
$webclient = New-Object Net.WebClient
# The next 5 lines are required if your network has a proxy server
$webclient.Credentials = [System.Net.CredentialCache]::DefaultCredentials
if($webclient.Proxy -ne $null) {
$webclient.Proxy.Credentials = `
[System.Net.CredentialCache]::DefaultNetworkCredentials
}
# This is the main call
$output = $webclient.DownloadString("$URL")
Not: Belki bu yardımcı olur: o zaman kullanabileceğiniz How can you add a Certificate to WebClient (C#)? Ama alamadım .. ;-)
Bu SO sorusunun anlamı, ya bir HttpWebRequest'i doğrudan kullanmanız veya WebClient'i geçersiz kılmaktır, böylece sertifikayı ekleyebilirsiniz. – JasonMArcher