Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/.gitlab
diff options
context:
space:
mode:
authornl6720 <nl6720@gmail.com>2023-06-01 09:33:00 +0300
committernl6720 <nl6720@gmail.com>2023-08-02 16:04:35 +0300
commit279d3c09711bd75f1ba3b31eb942f69052d3bbed (patch)
tree96941a201f39a1f16d188212c2780f0805bf2dbe /.gitlab
parent17a71ade2ee2fb6c5774bef43e7b8121d00b4bcf (diff)
.gitlab/ci/build_archiso.sh: improve CI codesigning certificate
Adjust subject name to more closely match what's used in create_ephemeral_pgp_key. Reduce the certificate validity to two days. These are just temporary certificates, they will not be used anywhere. Fixes #196
Diffstat (limited to '.gitlab')
-rwxr-xr-x.gitlab/ci/build_archiso.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/.gitlab/ci/build_archiso.sh b/.gitlab/ci/build_archiso.sh
index 3e1211b..248cb8c 100755
--- a/.gitlab/ci/build_archiso.sh
+++ b/.gitlab/ci/build_archiso.sh
@@ -219,12 +219,12 @@ create_ephemeral_codesigning_keys() {
local ca_dir="${codesigning_dir}/ca/"
local ca_conf="${ca_dir}/certificate_authority.cnf"
- local ca_subj="/C=DE/ST=Berlin/L=Berlin/O=Arch Linux/OU=Release Engineering/CN=archlinux.org"
+ local ca_subj='/C=DE/ST=Berlin/L=Berlin/O=Arch Linux/OU=Release Engineering/emailAddress=arch-releng@lists.archlinux.org/CN=Arch Linux Release Engineering (Ephemeral Certificate Authority)'
ca_cert="${ca_dir}/cacert.pem"
ca_key="${ca_dir}/private/cakey.pem"
local codesigning_conf="${codesigning_dir}/code_signing.cnf"
- local codesigning_subj="/C=DE/ST=Berlin/L=Berlin/O=Arch Linux/OU=Release Engineering/CN=archlinux.org"
+ local codesigning_subj='/C=DE/ST=Berlin/L=Berlin/O=Arch Linux/OU=Release Engineering/emailAddress=arch-releng@lists.archlinux.org/CN=Arch Linux Release Engineering (Ephemeral Signing Key)'
codesigning_cert="${codesigning_dir}/codesign.crt"
codesigning_key="${codesigning_dir}/codesign.key"
@@ -249,6 +249,7 @@ create_ephemeral_codesigning_keys() {
-keyout "${ca_key}" \
-config "${ca_conf}" \
-subj "${ca_subj}" \
+ -days 2 \
-out "${ca_cert}"
cat <<EOF >>"${ca_conf}"
@@ -285,7 +286,7 @@ EOF
-batch \
-config "${ca_conf}" \
-extensions v3_intermediate_ca \
- -days 3650 \
+ -days 2 \
-notext \
-md sha256 \
-in "${codesigning_cert}.csr" \