From ea5456c1e1451ca0e6280859030c19a6b2d1daff Mon Sep 17 00:00:00 2001
From: Jonas Eppelt <jonas.eppelt@kit.edu>
Date: Sun, 1 Oct 2023 12:10:13 +0000
Subject: [PATCH] adding github as trusted certificate

---
 basis/Dockerfile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/basis/Dockerfile b/basis/Dockerfile
index e6c53ba..f6daed8 100755
--- a/basis/Dockerfile
+++ b/basis/Dockerfile
@@ -4,11 +4,16 @@ LABEL maintainer "Eppelt, Jonas jonas.eppelt@kit.edu"
 
 USER root
 
-### fixing timezone issues
+### fixing timezone issues and make sure certificate lists are up to date
 RUN apt-get update && apt-get install -y tzdata
 ENV TZ=Europe/Berlin
 RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
 
+### adding github as trusted certificate
+RUN openssl s_client -showcerts -servername github.com -connect github.com:443 </dev/null 2>/dev/null | \
+    sed -n -e '/BEGIN\ CERTIFICATE/,/END\ CERTIFICATE/ p'  > github-com.pem && \
+    cat github-com.pem | sudo tee -a /etc/ssl/certs/ca-certificates.crt
+
 ### run apt-get installs for Latex for notebook conversion
 RUN apt-get update -y && apt-get upgrade -y && \
     apt-get install -y nano vim pandoc dvipng git texlive-xetex texlive texlive-lang-german texlive-latex-extra \
-- 
GitLab