Skip to content

Commit

Permalink
Add hic-tre.dundee.ac.uk CA cert
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronJackson committed Aug 6, 2024
1 parent 0305865 commit 625b443
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 0 deletions.
39 changes: 39 additions & 0 deletions modules/base.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,42 @@ $WshShell = New-Object -comObject WScript.Shell
$Shortcut = $WshShell.CreateShortcut("C:\Users\Administrator\Desktop\Remount D Drive.lnk")
$Shortcut.TargetPath = $batchPath
$Shortcut.Save()

# Install the HIC CA certificate
@"
-----BEGIN CERTIFICATE-----
MIIFhTCCA22gAwIBAgIUFMemF50opjcUTzCT+fh4dSRsOtIwDQYJKoZIhvcNAQEF
BQAwazELMAkGA1UEBhMCR0IxPTA7BgNVBAoMNEhlYWx0aCBJbmZvcm1hdGljcyBD
ZW50cmUgKEhJQyksIFVuaXZlc2l0eSBvZiBEdW5kZWUxHTAbBgNVBAMMFGhpYy10
cmUuZHVuZGVlLmFjLnVrMB4XDTI0MDgwNjEwMzI1MVoXDTM0MDgwNDEwMzI1MVow
azELMAkGA1UEBhMCR0IxPTA7BgNVBAoMNEhlYWx0aCBJbmZvcm1hdGljcyBDZW50
cmUgKEhJQyksIFVuaXZlc2l0eSBvZiBEdW5kZWUxHTAbBgNVBAMMFGhpYy10cmUu
ZHVuZGVlLmFjLnVrMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAs+uL
9nDUgAvCL8zM8xk+59gnLHTvbtomZCWCFVqEf7GKPknD5+Q1FiCzD1HPIEzkIXzq
DpPEgUts6FEqCK9WeoTapJGq+mL5GYKgPYbOwJigu0sUDwkDBw53QCisvz5keRW0
ipmVfuikrRJnDQieoVqoj960VfcIxn0vsLFHudpRyGyJUEm9yj2fu8F6/0cG8g9n
m/kQFbMzV9OpxUxz8eOAk37cU1uAUwfYYKX3J/BmCJDT049QN5Yn2CdWNTAto0e2
VAksepLpvUwY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KySFSzTKe5ijGPLSZB
9gBkPwvq/LWEo5IdMA0PnU3H8BcltGZnTfvNQo+0OBLvDIJICK2VsnZ0PdMx0+P3
R/YwiBMvhJ0zr9QzN6FFruOC1EblFOFuWA==
-----END CERTIFICATE-----
"@ | Out-File -FilePath C:\workdir\hic-tre.dundee.ac.uk.crt

Get-Item C:\workdir\hic-tre.dundee.ac.uk.crt | `
Import-Certificate -CertStoreLocation Cert:\LocalMachine\Root
36 changes: 36 additions & 0 deletions modules/base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,39 @@ if [ -f /snap/bin/firefox ] ; then
sudo add-apt-repository -y ppa:mozillateam/ppa
sudo apt install -y -q firefox-esr
fi

# Install HIC CA certificate
sudo tee /usr/local/share/ca-certificates/hic-tre.crt <<EOF
-----BEGIN CERTIFICATE-----
MIIFhTCCA22gAwIBAgIUFMemF50opjcUTzCT+fh4dSRsOtIwDQYJKoZIhvcNAQEF
BQAwazELMAkGA1UEBhMCR0IxPTA7BgNVBAoMNEhlYWx0aCBJbmZvcm1hdGljcyBD
ZW50cmUgKEhJQyksIFVuaXZlc2l0eSBvZiBEdW5kZWUxHTAbBgNVBAMMFGhpYy10
cmUuZHVuZGVlLmFjLnVrMB4XDTI0MDgwNjEwMzI1MVoXDTM0MDgwNDEwMzI1MVow
azELMAkGA1UEBhMCR0IxPTA7BgNVBAoMNEhlYWx0aCBJbmZvcm1hdGljcyBDZW50
cmUgKEhJQyksIFVuaXZlc2l0eSBvZiBEdW5kZWUxHTAbBgNVBAMMFGhpYy10cmUu
ZHVuZGVlLmFjLnVrMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAs+uL
9nDUgAvCL8zM8xk+59gnLHTvbtomZCWCFVqEf7GKPknD5+Q1FiCzD1HPIEzkIXzq
DpPEgUts6FEqCK9WeoTapJGq+mL5GYKgPYbOwJigu0sUDwkDBw53QCisvz5keRW0
ipmVfuikrRJnDQieoVqoj960VfcIxn0vsLFHudpRyGy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