Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/boriswilhelms/create-dotnet-devcert
A simple script that creates and trusts a self-signed development certificate for dotnet on Linux distributions.
https://github.com/boriswilhelms/create-dotnet-devcert
arch-linux aspnetcore fedora popos ssl ubuntu
Last synced: 5 days ago
JSON representation
A simple script that creates and trusts a self-signed development certificate for dotnet on Linux distributions.
- Host: GitHub
- URL: https://github.com/boriswilhelms/create-dotnet-devcert
- Owner: BorisWilhelms
- License: mit
- Created: 2020-12-13T12:23:43.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-04-04T13:09:50.000Z (almost 2 years ago)
- Last Synced: 2025-01-20T22:07:47.275Z (12 days ago)
- Topics: arch-linux, aspnetcore, fedora, popos, ssl, ubuntu
- Language: Shell
- Homepage: https://blog.wille-zone.de/post/aspnetcore-devcert-for-ubuntu
- Size: 23.4 KB
- Stars: 338
- Watchers: 9
- Forks: 74
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
- 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 snapIn addition the certificate will be imported into dotnet so that it will be used as a development certificate in ASP.NET Core.
## Prerequisites
- dotnet-sdk (Version >= 5.0)
- libnss3-tools
- ubuntu: `sudo apt install libnss3-tools`
- arch: `sudo pacman -S nss`
- fedora: `sudo dnf install openssl nss-tools`## 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](https://blog.wille-zone.de/post/aspnetcore-devcert-for-ubuntu).