From 8d045ce2a4cc65660bdf6ee8b555899c5c6119de Mon Sep 17 00:00:00 2001 From: Kirill Burtsev Date: Mon, 26 Aug 2019 13:46:35 +0200 Subject: Api to get certificate's chain on error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Expose certificate's chain on validation error starting with the immediate certificate and ending with the CA's certificate. [ChangeLog][QtWebEngineWidgets][QWebEngineCertificateError] New method to get the peer's chain of digital certificates. Fixes: QTBUG-51176 Change-Id: I799dfe9e44f9f2517f4691d175beee256114af79 Reviewed-by: Michael BrĂ¼ning --- tests/auto/shared/httpsserver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/auto/shared/httpsserver.h') diff --git a/tests/auto/shared/httpsserver.h b/tests/auto/shared/httpsserver.h index 76287a7e5..32c8e8345 100644 --- a/tests/auto/shared/httpsserver.h +++ b/tests/auto/shared/httpsserver.h @@ -41,7 +41,7 @@ struct SslTcpServer : QTcpServer { SslTcpServer() { - sslconf.setLocalCertificate(QSslCertificate::fromPath(":/resources/cert.pem").first()); + sslconf.setLocalCertificateChain(QSslCertificate::fromPath(":/resources/cert.pem")); sslconf.setPrivateKey(readKey(":/resources/key.pem")); } -- cgit v1.2.3