Storing certificates into Trusted Root Certification Authority programmatically RRS feed

  • Question

  • Hi All,
            I have a client certificate(.pfx PKCS12 file) and I want to put that in  Trusted Root Certification Authority. I can always right click on certificate and say install, but I want to do that in programmatic way. How can do this programmatically ? I tried overriding RemoteCertificateValidationCallback(CertificateValidationCallback), that seemed to work for allowing client's certificate on server(by returning true), but this is not working in same way for allowing server's certificate on Client side, just by returning true from that callback routine in client program. Still it say remote i.e. server's certificate is null.

    Thanks in advance,
    Monday, December 21, 2009 9:15 AM


All replies

  • Got the solution.
    • Marked as answer by swapnil kamble Wednesday, December 23, 2009 2:18 PM
    Wednesday, December 23, 2009 2:17 PM
  • Maybe you can share it for others

    Please be so kind to close your Threads when you found an answer, these Threads should help everyone with similar issues.
    You can close a Thread via the"Mark as Answer" link below posts. You can mark your own posts as answers if you were not helped out but found a solution, in such a case, please provide the answer.
    Happy coding
    PS: I assure everyone that I did not ever had the desire to offend anyone.

    Thursday, September 14, 2017 9:22 AM
  • Can you send me solution please?

    Thank you.

    Thursday, September 14, 2017 5:54 PM