Skip to content

Commit 77b5fb1

Browse files
committed
additional scripts for christie specific issues
1 parent 7b317a9 commit 77b5fb1

File tree

4 files changed

+22
-6
lines changed

4 files changed

+22
-6
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
# Only use if vscode.sh is not able to download extensions due to ssl issues
4+
5+
cd /config/
6+
rm -r /config/extensions
7+
git clone https://github.com/SamPIngram/code-server-extensions.git extensions
8+
9+
echo "Script completed :)"

docker/conda-code-server/setup/scripts/ssl_avoid.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ then
1515
else
1616
echo "trusted-host = pypi.python.org pypi.org files.pythonhosted.org" | sudo tee -a /etc/pip.conf
1717
fi
18-
if grep -Fxq "Options = UnsafeLegacyServerConnect" /etc/ssl/openssl.cnf
18+
if grep -Fxq "Options = UnsafeLegacyRenegotiation" /etc/ssl/openssl.cnf
1919
then
20-
echo "Options = UnsafeLegacyServerConnect not added to /etc/ssl/openssl.cnf"
20+
echo "Options = UnsafeLegacyRenegotiation not added to /etc/ssl/openssl.cnf"
2121
else
22-
echo "Options = UnsafeLegacyServerConnect" | sudo tee -a /etc/ssl/openssl.cnf
22+
echo "Options = UnsafeLegacyRenegotiation" | sudo tee -a /etc/ssl/openssl.cnf
2323
fi
2424
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' -
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
# switch out christie certificates with your own.
3+
4+
cp /etc/ssl/certs/cht-topol.xchristie.nhs.uk-withchain.crt ~/ssl/cert.pem
5+
cp /etc/ssl/certs/cht-topol.xchristie.nhs.uk.key ~/ssl/cert.key
6+
7+
echo "Certificates Copied! Restart Container. :)"

docker/workstation-base/setup/scripts/ssl_avoid.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ then
1515
else
1616
echo "trusted-host = pypi.python.org pypi.org files.pythonhosted.org" | sudo tee -a /etc/pip.conf
1717
fi
18-
if grep -Fxq "Options = UnsafeLegacyServerConnect" /etc/ssl/openssl.cnf
18+
if grep -Fxq "Options = UnsafeLegacyRenegotiation" /etc/ssl/openssl.cnf
1919
then
20-
echo "Options = UnsafeLegacyServerConnect not added to /etc/ssl/openssl.cnf"
20+
echo "Options = UnsafeLegacyRenegotiation not added to /etc/ssl/openssl.cnf"
2121
else
22-
echo "Options = UnsafeLegacyServerConnect" | sudo tee -a /etc/ssl/openssl.cnf
22+
echo "Options = UnsafeLegacyRenegotiation" | sudo tee -a /etc/ssl/openssl.cnf
2323
fi
2424
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' -

0 commit comments

Comments
 (0)