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();
|
||||
key.revocationSignatures = [];
|
||||
|
||||
return {
|
||||
return convertStreams({
|
||||
|
||||
key: key,
|
||||
privateKeyArmored: key.armor(),
|
||||
publicKeyArmored: key.toPublic().armor(),
|
||||
revocationCertificate: revocationCertificate
|
||||
|
||||
};
|
||||
});
|
||||
}).catch(onError.bind(null, 'Error reformatting keypair'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user