Skip to content

Commit

Permalink
init-certs: use almalinux9 images
Browse files Browse the repository at this point in the history
  • Loading branch information
kofemann committed Feb 9, 2024
1 parent b14e752 commit 15a7e66
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Add CA certs and generate host certificate
runAsUser: 0
runAsGroup: 0
name: init-host-certs
image: "centos:7"
image: "almalinux:9"
env:
- name: AUTOCA_URL
value: https://ci.dcache.org/ca
Expand All @@ -17,23 +17,23 @@ Add CA certs and generate host certificate
- -c
args:
- |
yum -q install -y openssl libtool-ltdl glibmm24 epel-release;
yum -q install -y fetch-crl;
dnf -y -q install openssl libtool-ltdl glibmm24 epel-release;
dnf -y install fetch-crl;
rpm -i https://www.desy.de/~tigran/ca_dCacheORG-3.0-6.noarch.rpm;
rpm -i https://linuxsoft.cern.ch/wlcg/centos7/x86_64/desy-voms-all-1.0.0-1.noarch.rpm;

curl https://repository.egi.eu/sw/production/cas/1/current/repo-files/egi-trustanchors.repo -o /etc/yum.repos.d/egi-trustanchors.repo
yum -y install ca_USERTrustRSACertificationAuthority \
dnf -y install ca_USERTrustRSACertificationAuthority \
ca_ResearchandEducationTrustRSARootCA \
ca_GEANTeScienceSSLCA4 \
ca_USERTrustECCCertificationAuthority \
ca_GEANTeScienceSSLECCCA4 \
ca_GEANTTCSAuthenticationRSACA4B;

curl --silent https://raw.githubusercontent.com/kofemann/autoca/v1.0-py2/pyclient/autoca-client -o /tmp/autoca-client;
curl --silent https://raw.githubusercontent.com/kofemann/autoca/v1.0-py3/pyclient/autoca-client -o /tmp/autoca-client;
chmod a+x /tmp/autoca-client;
cd /etc/grid-security/;
/tmp/autoca-client -n ${AUTOCA_URL} {{ . }};
python3 /tmp/autoca-client -n ${AUTOCA_URL} {{ . }};
chown 994:1000 *.pem;
/usr/sbin/fetch-crl;

Expand Down

0 comments on commit 15a7e66

Please sign in to comment.