From f3e36ab404e859587db7e677d248531522f91ad0 Mon Sep 17 00:00:00 2001 From: Pablo <31565658+pablo-lp@users.noreply.github.com> Date: Fri, 11 Jul 2025 14:10:23 +0200 Subject: [PATCH] [Fix] TRUSTED CERTIFICATE (#238) Fix for this error: unable to load certificate 140067633099200:error:0909006C:PEM routines:get_name:no start line:../crypto/pem/pem_lib.c:745:Expecting: TRUSTED CERTIFICATE --- build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 0003551..8f5de7e 100755 --- a/build.sh +++ b/build.sh @@ -14,8 +14,8 @@ rm -rf $DIR/server git clone --branch "v${BW_VERSION}" --depth 1 https://github.com/bitwarden/server.git $DIR/server # Replace certificate file and thumbprint -old_thumbprint=$(openssl x509 -fingerprint -noout -in $DIR/server/src/Core/licensing.cer | cut -d= -f2 | tr -d ':') -new_thumbprint=$(openssl x509 -fingerprint -noout -in $DIR/.keys/cert.cert | cut -d= -f2 | tr -d ':') +old_thumbprint=$(openssl x509 -inform DER -fingerprint -noout -in $DIR/server/src/Core/licensing.cer | cut -d= -f2 | tr -d ':') +new_thumbprint=$(openssl x509 -inform DER -fingerprint -noout -in $DIR/.keys/cert.cert | cut -d= -f2 | tr -d ':') sed -i -e "s/$old_thumbprint/$new_thumbprint/g" $DIR/server/src/Core/Services/Implementations/LicensingService.cs cp $DIR/.keys/cert.cert $DIR/server/src/Core/licensing.cer