Hande broken gpgconf in certificatewizard

Even if we have a good gnupg version it is not guranteed
that gpgconf returns all values as the config of gnupg
might be broken. In that case we still need to select
a default key type. We use RSA because that is what GnuPG
does.
parent 8a54d790
......@@ -1860,7 +1860,9 @@ void AdvancedSettingsDialog::loadDefaultGnuPGKeyType()
QStringLiteral("Configuration"),
QStringLiteral("default_pubkey_algo"));
if (!entry) {
// GnuPG does not support that option.
qCDebug(KLEOPATRA_LOG) << "GnuPG does not have default key type. Fallback to RSA";
setKeyType(Subkey::AlgoRSA);
setSubkeyType(Subkey::AlgoRSA);
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment