Skip to content

Instantly share code, notes, and snippets.

@mustakimali
Last active August 14, 2019 23:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mustakimali/acc409ccae002581076326b70a11634e to your computer and use it in GitHub Desktop.
Save mustakimali/acc409ccae002581076326b70a11634e to your computer and use it in GitHub Desktop.
c.Listen(IPEndPoint.Parse("0.0.0.0:5000", l =>
{
l.Protocols = HttpProtocols.Http2;
l.UseHttps(config =>
{
config.ServerCertificate = new X509Certificate2(Convert.FromBase64String("PFX-BASE64", "PASSWORD");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment