Skip to content

Commit 0a2f754

Browse files
committed
[auth] Use utility method certsToPemText
1 parent f804f0b commit 0a2f754

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/core/auth/qgsauthmanager.cpp

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2756,18 +2756,7 @@ bool QgsAuthManager::rebuildTrustedCaCertsCache()
27562756

27572757
const QByteArray QgsAuthManager::getTrustedCaCertsPemText()
27582758
{
2759-
QByteArray capem;
2760-
const QList<QSslCertificate> certs( getTrustedCaCertsCache() );
2761-
if ( !certs.isEmpty() )
2762-
{
2763-
QStringList certslist;
2764-
for ( const auto &cert : certs )
2765-
{
2766-
certslist << cert.toPem();
2767-
}
2768-
capem = certslist.join( QStringLiteral( "\n" ) ).toLatin1(); //+ "\n";
2769-
}
2770-
return capem;
2759+
return QgsAuthCertUtils::certsToPemText( getTrustedCaCertsCache() );
27712760
}
27722761

27732762
bool QgsAuthManager::passwordHelperSync()

0 commit comments

Comments
 (0)