Skip to content

Commit

Permalink
Update dotnet.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gpproton committed Jul 16, 2023
1 parent 1173a2e commit 9290907
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions linux/dotnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ cat >>"$HOME/.bashrc" <<SHELL
export DOTNET_ROOT=\$HOME/.dotnet
export PATH=\$PATH:\$DOTNET_ROOT
export PATH=\$PATH:\$DOTNET_ROOT/tools
export ASPNETCORE_Kestrel__Certificates__Default__Password=""
export ASPNETCORE_Kestrel__Certificates__Default__Path="\$HOME/localhost.pfx"
## end dotnet
SHELL
# source $HOME/.profile
Expand All @@ -26,4 +28,21 @@ dotnet --info
```bash
dotnet dev-certs https --clean --import $HOME/localhost.pfx -p ""
dotnet dev-certs https --trust
dotnet dev-certs https -ep $HOME/certificate/localhost.crt --format PEM
dotnet dev-certs https -ep $HOME/certificate/localhost.crt -p "" --trust --format PEM
```

```bash
## setup nss-tools or mozilla-nss-tools
cert_path=$HOME/certificate
cert_name="localhost"

## Chromium-based Browsers
certutil -d sql:$HOME/.pki/nssdb -A -t "P,," -n ${cert_name} -i ${cert_path}/${cert_name}.crt
certutil -d sql:$HOME/.pki/nssdb -A -t "C,," -n ${cert_name} -i ${cert_path}/${cert_name}.crt

## Mozilla Firefox
firefox_profile=""
certutil -d sql:$HOME/.mozilla/firefox/${firefox_profile}/ -A -t "P,," -n ${cert_name} -i ${cert_path}/${cert_name}.crt
certutil -d sql:$HOME/.mozilla/firefox/${firefox_profile}/ -A -t "C,," -n ${cert_name} -i ${cert_path}/${cert_name}.crt
```

0 comments on commit 9290907

Please sign in to comment.