code_junkie

Client certs without using the keystore

Nov 13th, 2011
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. test1.Service s = new test1.Service();
  2. X509Certificate c = X509Certificate.CreateFromCertFile(@"C:test.pem");
  3. s.ClientCertificates.Add(c);
  4. int result = s.TestMethod();
Add Comment
Please, Sign In to add comment