Don't return streams in openpgp.reformatKey()
This commit is contained in:
parent
3c1d89bbb5
commit
c3419e5cd0
|
@ -163,14 +163,14 @@ export function reformatKey({privateKey, userIds=[], passphrase="", keyExpiratio
|
||||||
const revocationCertificate = await key.getRevocationCertificate();
|
const revocationCertificate = await key.getRevocationCertificate();
|
||||||
key.revocationSignatures = [];
|
key.revocationSignatures = [];
|
||||||
|
|
||||||
return {
|
return convertStreams({
|
||||||
|
|
||||||
key: key,
|
key: key,
|
||||||
privateKeyArmored: key.armor(),
|
privateKeyArmored: key.armor(),
|
||||||
publicKeyArmored: key.toPublic().armor(),
|
publicKeyArmored: key.toPublic().armor(),
|
||||||
revocationCertificate: revocationCertificate
|
revocationCertificate: revocationCertificate
|
||||||
|
|
||||||
};
|
});
|
||||||
}).catch(onError.bind(null, 'Error reformatting keypair'));
|
}).catch(onError.bind(null, 'Error reformatting keypair'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user