I want to perform the following actions from inside .NET code:
- Create a self-signed certificate into the store, obtain its thumbprint;
- Import an existing certificate file into the store. Likewise, obtain thumbprint;
- Configure an HTTPS port for using this certificate, as per "netsh http add sslcert". I could simply run this console command from inside my program, but it'd be nice if there was a better way.
By the way, item #3 is the reason I need the thumbprints in items #1 and #2. Is this possible?