Skip to content

Commit

Permalink
#4146 use the new location for openssl.cnf
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jul 6, 2024
1 parent b5a3c97 commit d23f941
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packaging/MSWindows/BUILD.sh
Original file line number Diff line number Diff line change
Expand Up @@ -600,8 +600,8 @@ fi

if [ "${BUNDLE_OPENSSL}" == "1" ]; then
cp -fn "${MINGW_PREFIX}/bin/openssl.exe" "${DIST}/"
#use the old filename so we don't have to change the xpra.iss and the setup.py build system:
cp -fn "${MINGW_PREFIX}/ssl/openssl.cnf" "${DIST}/openssl.cfg"
mkdir -p "${DIST}/etc/ssl"
cp -fn "${MINGW_PREFIX}/etc/ssl/openssl.cnf" "${DIST}/etc/ssl/openssl.cnf"
#we need those libraries at the top level:
mv "${DIST}"/lib/libssl-*dll "${DIST}/"
mv "${DIST}"/lib/libcrypto-*dll "${DIST}/"
Expand Down
2 changes: 1 addition & 1 deletion packaging/MSWindows/xpra.iss
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ begin
cert := ExpandConstant('{commonappdata}\Xpra\ssl-cert.pem');
if (NOT FileExists(cert)) then
begin
config := ExpandConstant('{app}\openssl.cfg');
config := ExpandConstant('{app}\etc\ssl\openssl.cnf');
args := 'req -new -newkey rsa:4096 -days 365 -nodes -x509 -config "'+config+'" -subj "/C=US/ST=Denial/L=Springfield/O=Dis/CN=localhost" -out "'+cert+'" -keyout "'+cert+'"';
openssl := ExpandConstant('{app}\OpenSSL.exe');
if (FileExists(openssl)) then
Expand Down

0 comments on commit d23f941

Please sign in to comment.