Commit 13589dfc authored by Albert Vaca Cintora's avatar Albert Vaca Cintora

Ooops PER -> DER

parent b5a5416c
......@@ -57,11 +57,12 @@ Daemon::Daemon(QObject *parent, const QList<QVariant>&)
QCA::PrivateKey privateKey = QCA::KeyGenerator().createRSA(1024);
config->group("myself").writeEntry("privateKey", privateKey.toPEM());
config->group("myself").writeEntry("privateKey", privateKey.toDER());
QCA::PublicKey publicKey = privateKey.toPublicKey();
config->group("myself").writeEntry("publicKey", publicKey.toPEM());
config->group("myself").writeEntry("publicKey", publicKey.toDER());
//TODO: Store key in a PEM file instead (KStandardDirs::locate("appdata", "private.pem"))
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