Custom HTTPS Dev Environment using .NET Core, Kestrel & certificates
Les Jackson
In this step by step tutorial I take you through how to set up a βcustomβ domain using: .NET Core, Kestrel webserver, self-signed certificates and more.
Level: Beginner / Intermediate
π My Book: https://www.apress.com/gp/book/9781484262542
π€ Patreon Site (Exclusive Member Benefits!): https://www.patreon.com/binarythistle
π» Blog Article: https://dotnetplaybook.com/
π» Code on GitHub: https://github.com/binarythistle/S03E04—Custom-HTTPS-Domain
π HTTPS Article: https://www.cloudflare.com/learning/ssl/what-is-https/
π Public & Private Keys: https://medium.com/@vrypan/explaining-public-key-cryptography-to-non-geeks-f0994b3c2d5
β²οΈ Time Codes β²οΈ
——————————-
*INTRODUCTION*
– 2:21 Course Overview
– 5:46 Demo
– 6:27 Tooling
*HTTPS OVERVIEW*
– 6:49 What is HTTPS, SSL & TLS?
– 7:46 Certificate & Authorities Overview
– 9:44 What does a certificate contain?
– 10:30 Public & Private Key Overview
– 11:48 HTTPS How it Works (Interaction Diagram)
*LOCALHOST SET UP*
– 14:37 Scaffold Up our API
– 19:25 Generating a Local Dev Certificate
– 22:37 The need for a custom domain
*CUSTOM DOMAIN PART 1*
– 23:56 Update HOSTS File
– 27:02 Host name resolution order
– 28:15 Create our Self-Signed Certificate
– 35:00 Import Certificate into Trusted Root
*CUSTOM DOMAIN PART 2*
– 36:58 – User Secrets Overview
– 38:30 – Configure User Secrets
– 42:14 – Update appsettings.Development.json
– 44:07 – Create HostConfig static Class
– 46:00 – Update Program Class – Read in Config
– 49:55 – Load Certificate into Kestrel
– 55:13 – Listen on Specific IP Address
*FINAL THOUGHTS & ACKNOWLEDGEMENTS*
– 57:57 – Wrap Up
– 58:39 – Credits