Created
March 16, 2017 15:33
-
-
Save Maarten88/a4c687986624ded49f82b1ceaf0b46b1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static string GetAddHostNamePortCertCommand(string hostname, int port, string thumbprint) | |
{ | |
return $"netsh http add sslcert hostnameport={hostname}:{port} certhash={thumbprint} appid={Guid.Empty.ToString("B")} certstorename=MY"; | |
} | |
public static string GetDeleteHostNamePortCertCommand(string hostname, int port) | |
{ | |
return $"netsh http delete sslcert hostnameport={hostname}:{port}"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment