{"id":266,"date":"2011-05-13T17:29:45","date_gmt":"2011-05-13T15:29:45","guid":{"rendered":"http:\/\/blog.pushitup.com\/?p=266"},"modified":"2011-05-13T17:29:45","modified_gmt":"2011-05-13T15:29:45","slug":"composant-neatupload-en-ssl","status":"publish","type":"post","link":"https:\/\/blog.pushitup.com\/index.php\/2011\/05\/13\/composant-neatupload-en-ssl\/","title":{"rendered":"Composant NeatUpload en SSL"},"content":{"rendered":"<p>Vu que j&rsquo;ai pass\u00c3\u00a9 quelques heures \u00c3\u00a0 chercher une solution \u00c3\u00a0 ce pb, et si vous rencontrez le m\u00c3\u00aame souci que moi sur un site ASP.Net, voici le code que j&rsquo;ai d\u00c3\u00bb rajouter dans mon fichier \u00ab\u00a0global.asax\u00a0\u00bb pour faire fonctionner ce tr\u00c3\u00a8s pratique composant sur un site prot\u00c3\u00a9g\u00c3\u00a9 par un certificat SSL auto-sign\u00c3\u00a9 :<\/p>\n<blockquote><p>public class TrustAllCertificatePolicy : System.Net.ICertificatePolicy<br \/>\n{<br \/>\npublic TrustAllCertificatePolicy()<br \/>\n{ }<\/p>\n<p>public bool CheckValidationResult(ServicePoint sp,<br \/>\nX509Certificate cert, WebRequest req, int problem)<br \/>\n{<br \/>\nreturn true;<br \/>\n}<br \/>\n}<\/p>\n<p>void Application_Start(object sender, EventArgs e)<br \/>\n{<br \/>\n\/\/ Code that runs on application startup<br \/>\nSystem.Net.ServicePointManager.CertificatePolicy = new TrustAllCertificatePolicy();<br \/>\n}<\/p><\/blockquote>\n<p>Pensez \u00c3\u00a0 rajouter \u00c3\u00a7a au d\u00c3\u00a9but \u00c3\u00a9galement :<\/p>\n<p>&lt;%@ Import Namespace=\u00a0\u00bbSystem.Net\u00a0\u00bb %&gt;<br \/>\n&lt;%@ Import Namespace=\u00a0\u00bbSystem.Security.Cryptography.X509Certificates\u00a0\u00bb %&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Vu que j&rsquo;ai pass\u00c3\u00a9 quelques heures \u00c3\u00a0 chercher une solution \u00c3\u00a0 ce pb, et si vous rencontrez le m\u00c3\u00aame souci que moi sur un site ASP.Net, voici le code que j&rsquo;ai d\u00c3\u00bb rajouter dans mon fichier \u00ab\u00a0global.asax\u00a0\u00bb pour faire fonctionner ce tr\u00c3\u00a8s pratique composant sur un site prot\u00c3\u00a9g\u00c3\u00a9 par un certificat SSL auto-sign\u00c3\u00a9 : public&hellip; <a class=\"more-link\" href=\"https:\/\/blog.pushitup.com\/index.php\/2011\/05\/13\/composant-neatupload-en-ssl\/\">Poursuivre la lecture <span class=\"screen-reader-text\">Composant NeatUpload en SSL<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[10,14],"tags":[],"class_list":["post-266","post","type-post","status-publish","format-standard","hentry","category-aspnet","category-astuce","entry"],"_links":{"self":[{"href":"https:\/\/blog.pushitup.com\/index.php\/wp-json\/wp\/v2\/posts\/266","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.pushitup.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.pushitup.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.pushitup.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.pushitup.com\/index.php\/wp-json\/wp\/v2\/comments?post=266"}],"version-history":[{"count":0,"href":"https:\/\/blog.pushitup.com\/index.php\/wp-json\/wp\/v2\/posts\/266\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.pushitup.com\/index.php\/wp-json\/wp\/v2\/media?parent=266"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pushitup.com\/index.php\/wp-json\/wp\/v2\/categories?post=266"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pushitup.com\/index.php\/wp-json\/wp\/v2\/tags?post=266"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}