Skip to content

Commit 139755a

Browse files
committed
fix: SSL certificate verification issue
Error message as follows: > error: certificate verify failed (unable to get certificate CRL)
1 parent c3fd7b7 commit 139755a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

script/init_environment.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ pre-flight() {
1111
# Installing git package
1212
pacman -S --noconfirm git
1313

14-
# Installing ca-certificates package to avoid SSL issues
15-
pacman -S --noconfirm ca-certificates
16-
update-ca-trust
17-
1814
# Installing openssh package
1915
if [[ -n "${SSH_PRIVATE_KEY}" ]]; then
2016
pacman -S --noconfirm openssh
@@ -58,6 +54,10 @@ init_ruby() {
5854

5955
# debug
6056
ruby -v && bundle version
57+
58+
# OpenSSL 3.6 broke Ruby's OpenSSL bindings, see: https://github.com/ruby/openssl/issues/949
59+
# By using the openssl gem, we can pick up the fixes without needing to upgrade Ruby.
60+
echo "gem 'openssl', '~> 3.3'" >> "$(find ${WORKING_DIR} -name "Gemfile" -type f)"
6161
}
6262

6363
pre-flight && init_ruby

0 commit comments

Comments
 (0)