.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
This commit is contained in:
parent
17a71ade2e
commit
279d3c0971
@ -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" \
|
||||
|
Loading…
Reference in New Issue
Block a user