mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 18:12:55 +01:00
Bookworm and Ruby 3.0: Use system root CAs
Link the system certificate directory to the custom OpenSSL certificate directory. Fixes cert chain errors for HTTP requests sent from Ruby. Relates https://gitlab.com/gitlab-org/gitlab-build-images/-/issues/132
This commit is contained in:
parent
8217b75bbf
commit
16d316f321
1 changed files with 2 additions and 0 deletions
|
|
@ -129,6 +129,8 @@ function install_custom_openssl_if_needed() {
|
|||
make
|
||||
make install
|
||||
rm -rf /tmp/openssl-${CUSTOM_OPENSSL_VERSION}
|
||||
rm -r "${CUSTOM_OPENSSL_DIR}/certs"
|
||||
ln -sf /etc/ssl/certs "${CUSTOM_OPENSSL_DIR}/certs"
|
||||
# set CONFIGURE_ARGS for ruby builds
|
||||
export CONFIGURE_ARGS="${CONFIGURE_ARGS:-} --with-openssl-dir=$CUSTOM_OPENSSL_DIR"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue