BorisWilhelms / create-dotnet-devcert

A simple script that creates and trusts a self-signed development certificate for dotnet on Linux distributions.
https://blog.wille-zone.de/post/aspnetcore-devcert-for-ubuntu
MIT License
335 stars 74 forks source link
arch-linux aspnetcore fedora popos ssl ubuntu

create-dotnet-devcert

A simple script that creates and trusts a self-signed development certificate for dotnet on Ubuntu and Arch based distributions.

What does the script do

The script uses openssl to create a self-signed certificate. The certificate will then be imported and trusted at:

In addition the certificate will be imported into dotnet so that it will be used as a development certificate in ASP.NET Core.

Prerequisites

Usage

Simply run the script needed for your distribution.

Ubuntu based distributions: ./scripts/ubuntu-create-dotnet-devcert

Arch based distributions: ./scripts/arch-create-dotnet-devcert

Fedora based distributions: ./scripts/fedora-create-dotnet-devcert

Use the -s to also save the certificate into the home folder so it can be manually imported into other programs.

More info

More information about this can be found on my blog post https://blog.wille-zone.de/post/aspnetcore-devcert-for-ubuntu.