Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WebRequestHandler handler = new WebRequestHandler();
- handler.ServerCertificateCustomValidationCallback += (sender, certificate, chain, errors) => true;
- using (HttpClient client = new HttpClient(handler)) {
- //Code goes here
- }
- X509Store store = new X509Store(StoreName.My, StoreLocation.LocalMachine);
- store.Open(OpenFlags.ReadOnly);
- X509Certificate2Collection collection = store.Certificates;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement