79603498

Date: 2025-05-02 13:48:18
Score: 1.5
Natty:
Report link

After many trials with ChatGPT it resolved it, here is it:

// Instead of this:        
request.ClientCertificates.Add(new X509Certificate2(CertPath, CertPwd));

// Use this:        
request.ClientCertificates.Add(new X509Certificate2(CertPath, CertPwd, X509KeyStorageFlags.MachineKeySet | X509KeyStorageFlags.PersistKeySet));

And here GPT answer:
enter image description here

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Akkad