1Danke
ERLEDIGT
JA
JA
ANTWORTEN
1
1
ZUGRIFFE
725
725
EMPFEHLEN
-
23.02.11 16:56 #1
Ich muss auf eine Webseite zugreifen bei der das Zertifikat nicht vertrauenswürdig ist.
Aber wie mache ich das via C-Sharp?Geändert von VanHellsehn (23.02.11 um 17:08 Uhr)
=)
-
23.02.11 20:37 #2
- Registriert seit
- Aug 2001
- Ort
- Österreich, Stmk, Graz
- Beiträge
- 2.783
Hi!
C#: How to accept an invalid SSL certificate programmatically
Code csharp:1 2 3 4 5 6 7 8 9
ServicePointManager.ServerCertificateValidationCallback += new RemoteCertificateValidationCallback(ValidateRemoteCertificate); // - - - // callback used to validate the certificate in an SSL conversation private static bool ValidateRemoteCertificate(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors policyErrors) { return true; // accept all certificates.. }
Sollte helfen..
lg..
With the first link the chain is forged. The first speech censored, the first thought forbidden, the first freedom denied, chains us all irrevocably.
Aaron Satie
Legends... are the spice of the universe, Mr. Data, because they have a way of sometimes coming true.
Captain Jean-Luc Picard, Stardate ~41294.5
Tutorials.de chattet. Hier gibts auch .net Support ^^
Klickt auf chattet und nutzt den Webchat, oder verbindet euch zu irc.tutorials.de - Channel #Tutorials.de
(moo)blog furred.net // SiteInfo für WP7 // Pastebin für WP7 // BlogEngine.net Extensions
Ähnliche Themen
-
Verständnisfrage HTTPS Verbindung
Von Foermchen82 im Forum .NET Web und KommunikationAntworten: 0Letzter Beitrag: 14.02.11, 11:09 -
Indy SSL --> https-Verbindung
Von Doc_Foo im Forum Delphi, Kylix, PascalAntworten: 4Letzter Beitrag: 09.12.06, 12:59 -
Passt zwar nicht, aber...: Großer Reiseplaner
Von DeMuX im Forum Microsoft WindowsAntworten: 5Letzter Beitrag: 27.03.06, 15:35 -
OReilly HttpsMessage -- no trusted certificate found
Von swagner im Forum Enterprise Java (JEE, J2EE, Spring & Co.)Antworten: 0Letzter Beitrag: 08.09.04, 13:10 -
Ich weiß zwar nicht ob ich hier Richtig bin...
Von suntrop im Forum SmalltalkAntworten: 4Letzter Beitrag: 20.01.02, 18:21





Zitieren

Login





