Skip to content

Commit 600409e

Browse files
committed
Add available CA certificate debug information
1 parent 0380365 commit 600409e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/core/qgismobileapp.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@
140140
#include <QQmlFileSelector>
141141
#include <QResource>
142142
#include <QScreen>
143+
#include <QSslConfiguration>
143144
#include <QStyleHints>
144145
#include <QtQml/QQmlApplicationEngine>
145146
#include <QtQml/QQmlContext>
@@ -202,6 +203,14 @@ QgisMobileapp::QgisMobileapp( QgsApplication *app, QObject *parent )
202203
, mFirstRenderingFlag( true )
203204
, mApp( app )
204205
{
206+
QSslConfiguration sslConfiguration = QSslConfiguration::defaultConfiguration();
207+
const QList<QSslCertificate> certs = sslConfiguration.caCertificates();
208+
qInfo() << QStringLiteral( "Available CA certificates:" );
209+
for ( const QSslCertificate cert : certs )
210+
{
211+
qInfo() << QStringLiteral( "- %1" ).arg( cert.issuerDisplayName() );
212+
}
213+
205214
// Set a nicer default hyperlink color to be used in QML Text items
206215
QPalette palette = app->palette();
207216
palette.setColor( QPalette::Link, QColor( 128, 204, 40 ) );

0 commit comments

Comments
 (0)