summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOndrej Holy <oholy@redhat.com>2020-01-23 15:10:55 +0100
committerOndrej Holy <oholy@redhat.com>2020-01-23 14:29:17 +0000
commit7d99cffa0f17c57b7dac680240d8089caaafef9a (patch)
tree51104ea40255da604ff864ed50bf212964f88882 /test
parent906f3d01493326ebca486ca53383a2ed3e919130 (diff)
downloadgvfs-7d99cffa0f17c57b7dac680240d8089caaafef9a.tar.gz
tests: Update certificate to work with recent standards
The following error appears on Ubuntu because of change of OpenSSL defaults: "SSL Library Error: error:140AB18F:SSL routines:SSL_CTX_use_certificate:ee key too small" This is probably because the original cert was generated with rsa:1024. Let's generate new one with rsa:2048 using the following command to fix this: "openssl req -x509 -nodes -days 1 -newkey rsa:2048 -subj /CN=localhost -keyout testcert.pem -out testcert.pem" Fixes: https://gitlab.gnome.org/GNOME/gvfs/issues/448
Diffstat (limited to 'test')
-rw-r--r--test/files/testcert.pem68
1 files changed, 43 insertions, 25 deletions
diff --git a/test/files/testcert.pem b/test/files/testcert.pem
index d31e9636..0913bede 100644
--- a/test/files/testcert.pem
+++ b/test/files/testcert.pem
@@ -1,29 +1,47 @@
-----BEGIN PRIVATE KEY-----
-MIICeAIBADANBgkqhkiG9w0BAQEFAASCAmIwggJeAgEAAoGBAL5s/KxYPSz0AsQ2
-6nnS0m27cbIS3T4YqemMuNBElZ15jsV4xy0Lj2ahNctjQkTGB7ks2QOsS89GjLId
-tOhwJXlf7odeL43ZnTIqKlrpdwW0kYo3crI4HHW/KNBLp7UxJMkOsomZN1+v3Mm0
-CXwmgeqfmFM1iku7n+PcxZSWA2WTAgMBAAECgYB9ppSjdCYJv4kDx+i4MfBAD+tZ
-wTDThJq5TO22H0tJ+afHjYZ/pp0c70r7xac4kiMOgRVBYzMyti6oaQmyRi2y37gO
-VD6otfZ60V4IR9VrVMGCZvgufn07oY0y2h+tlzo9c7CZs+kLBKN8iW2uLld4q/2E
-vTfPRP1Ncw0NGzs1YQJBA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