Can tell me what in the world I'm doing wrong with trying to create my certificate so I can store it in app settings?
This line works fine
var cert = new X509Certificate2("client.certificate.pfx");
However, when I try to just get the raw data, by just using this certificate
var stringOfCert = Convert.ToBase64String(cert.RawData);
Certificate = new X509Certificate2(Convert.FromBase64String( stringOfCert ), password)
I get the following error
{"Type":"InvalidAuth","Message":"This server requires client certificate for authentication, but none was provided by the client."}
The password is from the "PASSWORD" file downloaded as part of the certificate
There doesn't seem to any documentation on this that doesn't involve me having to commit a .pfx file.
Any idea why it can't just use connection strings like MongoDb ect?