Skip to content
Snippets Groups Projects
Commit 0c611cea authored by Jed Parsons's avatar Jed Parsons
Browse files

Merge pull request #1789 from mozilla/bugfix-breaking-idp-serialized-pubkey

updated genKeyPair IdP callback to pass a string pubkey, not a JSON object
parents 303dc9d1 34e4a360
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@
$.ajax({
url: '/api/cert_key',
data: JSON.stringify({
pubkey: pubkey,
pubkey: JSON.parse(pubkey),
duration: cert_duration
}),
type: 'POST',
......
......@@ -72,7 +72,7 @@ BrowserID.Provisioning = (function() {
trans.delayReturn(true);
jwcrypto.generateKeypair({algorithm: "DS", keysize: BrowserID.KEY_LENGTH}, function(err, kp) {
keypair = kp;
trans.complete(keypair.publicKey.toSimpleObject());
trans.complete(keypair.publicKey.serialize());
});
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment