Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update enforcing-ssl.md #22253

Merged
merged 1 commit into from
May 10, 2021
Merged

Update enforcing-ssl.md #22253

merged 1 commit into from
May 10, 2021

Conversation

Rick-Anderson
Copy link
Contributor

Fixes #22251

we've verified with a clean machine
Windows Sandbox is the easiest way to test on a clean machine.

@Rick-Anderson Rick-Anderson requested a review from javiercn May 10, 2021 20:26
@Rick-Anderson Rick-Anderson merged commit a5937bc into main May 10, 2021
@Rick-Anderson Rick-Anderson deleted the Rick-Anderson-patch-2 branch May 10, 2021 20:28
@tmds
Copy link
Member

tmds commented May 11, 2021

@Rick-Anderson these steps are not working for me, see dotnet/aspnetcore#32361 (comment).

@javiercn
Copy link
Member

javiercn commented May 11, 2021

@RickAndMSFT can we update the instructions here?

Firefox on Fedora

echo 'pref("general.config.filename", "firefox.cfg");
pref("general.config.obscure_value", 0);' > ./autoconfig.js

echo '//Enable policies.json
lockPref("browser.policies.perUserDir", false);' > firefox.cfg

echo "{
    \"policies\": {
        \"Certificates\": {
            \"Install\": [
            	\"aspnetcore-localhost-https.crt\"
            ]
        }
    }
}" > policies.json

dotnet dev-certs https -ep localhost.crt --format PEM

sudo mv autoconfig.js /usr/lib64/firefox/
sudo mv firefox.cfg /usr/lib64/firefox/
sudo mv policies.json /usr/lib64/firefox/distribution/
mkdir -p ~/.mozilla/certificates
cp localhost.crt ~/.mozilla/certificates/aspnetcore-localhost-https.crt
rm localhost.crt

Trust dotnet-to-dotnet on Fedora

sudo cp localhost.crt /etc/pki/tls/certs/localhost.pem
sudo update-ca-trust
rm localhost.crt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Https] Linux: Instructions for trust on Fedora 34
3 participants