c# - Ignore Invalid SSL-Certificate Windows 10 -


i've got following problem:
i'm developing windows 10 universal app (uap) in c# , i'm doing network communication via webrequest... problem want ignore if target server has invalid ssl-certificate. how can this? before windows 10 set property in servicepointmanager, not available in windows 10... do?

hope not late you. in similar situation you. here did.

var filter = new windows.web.http.filters.httpbaseprotocolfilter(); filter.ignorableservercertificateerrors.add(windows.security.cryptography.certificates.chainvalidationresult.expired); filter.ignorableservercertificateerrors.add(windows.security.cryptography.certificates.chainvalidationresult.untrusted); filter.ignorableservercertificateerrors.add(windows.security.cryptography.certificates.chainvalidationresult.invalidname);  using (var client = new windows.web.http.httpclient(filter))     {         uri uri = new uri("https://yourwebsite.com");     } 

Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -