Custom HTTPS Dev Environment using .NET Core, Kestrel & certificates

Опубликовано: 20 Март 2025
на канале: Les Jackson
49,475
1.3k

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/978148...
🤗 Patreon Site (Exclusive Member Benefits!):   / binarythistle  
💻 Blog Article: https://dotnetplaybook.com/
💻 Code on GitHub: https://github.com/binarythistle/S03E...
🔒 HTTPS Article: https://www.cloudflare.com/learning/s...
🔑 Public & Private Keys:   / explaining-public-key-cryptography-to-non-...  

⏲️ 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