Skip to content
Permalink
Browse files

[auth] Set trusted certs for default SSL configs when cache rebuilt

  • Loading branch information
dakcarto committed Oct 6, 2015
1 parent 0dc4c8e commit e9333326c5ec786068a835128ec104d304b17690
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/core/auth/qgsauthmanager.cpp
@@ -2603,6 +2603,12 @@ const QList<QSslCertificate> QgsAuthManager::getTrustedCaCerts( bool includeinva
trustedcerts.append( cert );
}
}

// update application default SSL config for new requests
QSslConfiguration sslconfig( QSslConfiguration::defaultConfiguration() );
sslconfig.setCaCertificates( trustedcerts );
QSslConfiguration::setDefaultConfiguration( sslconfig );

return trustedcerts;
}

0 comments on commit e933332

Please sign in to comment.
You can’t perform that action at this time.