Skip to content

Commit

Permalink
Install CA certificate on Firefox (Windows)
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronJackson committed Aug 23, 2024
1 parent 0c44934 commit d2c3034
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion modules/hic-tre-cert.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,22 @@ zvyXRCnDutC2I48pjubDIKtp2crIOMdsmtBVCQq6gX1Sl/4z4E6BXEWkfVcSBk+O
05i6skiAX2QQcqX+EC/9HQ8UEjKIGeXyR2SxAiACx+1ckj9MHG8nytRAJQ2glmLs
ws7bgq7KAqJqvvPyVIeOW0hx4AX+5Q==
-----END CERTIFICATE-----
"@ | Out-File -FilePath C:\Tools\hic-tre.dundee.ac.uk.crt
"@ | Out-File -Encoding ASCII -FilePath C:\Tools\hic-tre.dundee.ac.uk.crt

Get-Item C:\Tools\hic-tre.dundee.ac.uk.crt | `
Import-Certificate -CertStoreLocation Cert:\LocalMachine\Root


# Firefox doesn't use the system certificates by default, but a policy
# can be used to force the installation of the certificate at the next
# run.
New-Item -Path "C:\Program Files\Mozilla Firefox\" -Name distribution -ItemType Directory -Force
@"
{
"policies": {
"Certificates": {
"Install": ["C:\\Tools\\hic-tre.dundee.ac.uk.crt"]
}
}
}
"@ | Out-File -Encoding ASCII -FilePath "C:\Program Files\Mozilla Firefox\distribution\policies.json"

0 comments on commit d2c3034

Please sign in to comment.