Skip to content

Commit 7ee252e

Browse files
committed
Allow updating SSL cert custom configuration
So far it was only possible to add a first configuration, changing the configuration later on would fail with a unique constraint error.
1 parent 0f6d808 commit 7ee252e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/auth/qgsauthmanager.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1872,7 +1872,7 @@ bool QgsAuthManager::storeSslCertCustomConfig( const QgsAuthConfigSslServer &con
18721872
QString certpem( cert.toPem() );
18731873

18741874
QSqlQuery query( authDbConnection() );
1875-
query.prepare( QString( "INSERT INTO %1 (id, host, cert, config) "
1875+
query.prepare( QString( "INSERT OR REPLACE INTO %1 (id, host, cert, config) "
18761876
"VALUES (:id, :host, :cert, :config)" ).arg( authDbServersTable() ) );
18771877

18781878
query.bindValue( ":id", id );

0 commit comments

Comments
 (0)