Skip to content

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

License

Notifications You must be signed in to change notification settings

pelsedyr/create-dotnet-devcert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

create-dotnet-devcert

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

What does the script do

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

  • System certificates - to enable service-to-service communication
  • User nssdb - to trust the certificate in supported application like Chromium or Microsoft Edge
  • Snap Chromium nssdb - to trust the certificate in Chromium if installed via snap
  • Snap Postman nssdb - to trust the certificate in Postman if installed via snap

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

Prerequisites

  • dotnet
  • libnss3-tools (install via sudo apt install libnss3-tools)

Usage

Simply run the script.

./create-dotnet-devcert

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%