diff options
author | Kirill Burtsev <kirill.burtsev@qt.io> | 2019-08-26 13:46:35 +0200 |
---|---|---|
committer | Kirill Burtsev <kirill.burtsev@qt.io> | 2019-09-05 23:33:12 +0200 |
commit | 8d045ce2a4cc65660bdf6ee8b555899c5c6119de (patch) | |
tree | f25ecfc6b167993215f6808d1a6ada105c069524 /tests/auto/shared/httpsserver.h | |
parent | bf3753f02402b44455038c4fa2a897d41aadf850 (diff) |
Api to get certificate's chain on error
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 <michael.bruning@qt.io>
Diffstat (limited to 'tests/auto/shared/httpsserver.h')
-rw-r--r-- | tests/auto/shared/httpsserver.h | 2 |
1 files changed, 1 insertions, 1 deletions
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")); } |