mirror of
https://github.com/AuxXxilium/synology-wireguard.git
synced 2025-02-20 08:37:49 +07:00
Fix certificate verification issue when building
Use the workaround suggested by Rob Stradling here: https://mta.openssl.org/pipermail/openssl-users/2021-October/014402.html Fixes #109
This commit is contained in:
parent
19c086a157
commit
7afd1e18d1
5
build.sh
5
build.sh
@ -87,6 +87,11 @@ if [ ! -d "$build_env" ]; then
|
||||
# Ensure the installed toolchain has support for CA signed certificates.
|
||||
# Without this wget on https:// will fail
|
||||
cp /etc/ssl/certs/ca-certificates.crt "$build_env/etc/ssl/certs/"
|
||||
|
||||
# Add patched version of DST Root CA X3 certificate
|
||||
wget -O DSTRootCAX3_Extended.crt "https://crt.sh/?d=8395"
|
||||
sed -i "s/xMDkzMDE0MDExNVow/0MDkzMDE4MTQwM1ow/g" DSTRootCAX3_Extended.crt
|
||||
cat DSTRootCAX3_Extended.crt >> "$build_env/etc/ssl/certs/ca-certificates.crt"
|
||||
fi
|
||||
|
||||
# Patch WireGuard to use its own included memneq implementation if architecture
|
||||
|
Loading…
Reference in New Issue
Block a user