mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
dbhub: Use certificate manager to get client cert for authentication
When trying to fetch a database don't load a hardcoded client certificate but grab one from the certificate manager in the preferences dialog. Also add support for password protected private keys. Note: Since this is all testing code on the front-end side, we just use the first certificate in case multiple certificates are configured.
This commit is contained in:
@@ -2145,7 +2145,8 @@ void MainWindow::on_actionOpen_Remote_triggered()
|
||||
QString url = QInputDialog::getText(this, qApp->applicationName(), tr("Please enter the URL of the database file to open."));
|
||||
if(!url.isEmpty())
|
||||
{
|
||||
m_remoteDb.fetchDatabase(url);
|
||||
QStringList certs = Settings::getSettingsValue("remote", "client_certificates").toStringList();
|
||||
m_remoteDb.fetchDatabase(url, (certs.size() ? certs.at(0) : ""));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user