summaryrefslogtreecommitdiffstats
path: root/tests/testserver/common/ssl.sh
diff options
context:
space:
mode:
authorRyan Chu <ryan.chu@qt.io>2019-01-25 22:48:29 +0100
committerLiang Qi <liang.qi@qt.io>2019-01-28 14:03:34 +0000
commit71cd5a6f3643a5369b883d0e36478693de6db024 (patch)
treeec3be7c85ddb8736ca23b9249047b2b6f518787a /tests/testserver/common/ssl.sh
parentd8d60696da8bbb168ac4554b51c96ea244e407b8 (diff)
Select single-name SSL certificate for test servers using host network
On Windows and macOS, the containers are deployed into a virtual machine using the host network. All the containers share the same hostname (qt-test-server), and they are connected to the same network domain (local). When running test in such platforms, use the single-name SSL certificate (qt-test-server.local) for SSL related tests. Change-Id: Idf33e01e8dd8814510d848b87b59b5fc0edc903e Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io>
Diffstat (limited to 'tests/testserver/common/ssl.sh')
-rwxr-xr-xtests/testserver/common/ssl.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/testserver/common/ssl.sh b/tests/testserver/common/ssl.sh
index 8a4728ad4d..2593a22979 100755
--- a/tests/testserver/common/ssl.sh
+++ b/tests/testserver/common/ssl.sh
@@ -35,5 +35,6 @@ set -ex
# install ssl_certs and test data
su $USER -c "mkdir -p -m 700 ~/ssl-certs/private"
-su $USER -c "cp $CONFIG/ssl/qt-test-server-cert.pem ~/ssl-certs/"
+su $USER -c \
+ "cp $CONFIG/ssl/${test_cert:-qt-test-server-cert.pem} ~/ssl-certs/qt-test-server-cert.pem"
su $USER -c "cp $CONFIG/ssl/private/qt-test-server-key.pem ~/ssl-certs/private/"