I implimenting a server using selfhost webApi. I need to use ssl with certificates that will load a .cer file ( = Used to store a public key ) that will be load from disk when the server will start.
I loaded the the .cer file
X509Certificate2 certificate = new X509Certificate2(fullpath, password);
but i don't know how to set the webapi to use this certificate file.
I don't find any example or how to do it.
Any help please
Thanks