I m making an application which requires sending encrypted and digitally signed email for which I want to use S/MIME. I am using the MAILKIT and MIMEKIT API. However, the MIMEKIT requires the certificates to be loaded from a sql database. As shown below
public MySecureMimeContext()
: base(OpenDatabase("C:\\wherever\\certdb.sqlite"))
{
}
I have got certificates with me (Root CA and Client Certificates (pfx files), but how can I save and read them from a database ? Or is there an alternative simple approach ?