Re: [jose] JWK Generator Service
Richard Barnes <rlb@ipv.sx> Tue, 04 November 2014 14:54 UTC
Return-Path: <rlb@ipv.sx>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1FC7C1A8954 for <jose@ietfa.amsl.com>; Tue, 4 Nov 2014 06:54:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level:
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MAMxumpqNyRs for <jose@ietfa.amsl.com>; Tue, 4 Nov 2014 06:54:05 -0800 (PST)
Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 10B2F1A894D for <jose@ietf.org>; Tue, 4 Nov 2014 06:54:04 -0800 (PST)
Received: by mail-vc0-f169.google.com with SMTP id hy4so6736744vcb.14 for <jose@ietf.org>; Tue, 04 Nov 2014 06:54:04 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=6QeIZ73QvLEeHrAISfmq99290ecekAlEXNC3PQHgoGs=; b=RFMd75ZNwTNFRqRezxrALBRZVoDRyY45/tnAAf/S7ydiLOOVMC0uWKGTTDE3MzcdPi UpSYYS7Ou7aPRMiYrl3+E7uP+hQf9PYJT2I8B9p+fyp8Kt+E5T+v9fVXJFgD1lHJDk9H ZPwDjthgmt9lmyilxBeQL842DJ9eJSo6K+Mff2R/xmyTlYUFW7mimsnPHp2/98tsXSN0 OxvLNO66XplbHrcxa1BL+nwuYFkTlzSj1CeU/x9ATZr++5b93ax7BRXG1caugnpjK/b/ aBX/ZxSAQ+Vo/ebUKpumXKIv/70wr7maQutDrtZ7MUF6wPZjN1AK8e14yQE/C+RtV+dg 9wkw==
X-Gm-Message-State: ALoCoQniPn6rdY9fEACFDnVDnhLZUDALHR9hdU3L3Q/mghKf/0n61l0Zy27uD6ElIwncRzTNSX2s
MIME-Version: 1.0
X-Received: by 10.220.81.196 with SMTP id y4mr45367558vck.25.1415112844064; Tue, 04 Nov 2014 06:54:04 -0800 (PST)
Received: by 10.31.149.205 with HTTP; Tue, 4 Nov 2014 06:54:04 -0800 (PST)
In-Reply-To: <5458E645.9020904@mit.edu>
References: <5458E645.9020904@mit.edu>
Date: Tue, 04 Nov 2014 09:54:04 -0500
Message-ID: <CAL02cgTVHkGmB2+L90EaqpBT26+FqsNsvkvsV0Tig45tDJLjaw@mail.gmail.com>
From: Richard Barnes <rlb@ipv.sx>
To: Justin Richer <jricher@mit.edu>
Content-Type: multipart/alternative; boundary="001a11c1f022634fc5050709a273"
Archived-At: http://mailarchive.ietf.org/arch/msg/jose/HHAr02hTrPvxXV7DrSl8w1q_jjs
Cc: "jose@ietf.org" <jose@ietf.org>
Subject: Re: [jose] JWK Generator Service
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose/>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 04 Nov 2014 14:54:07 -0000
Note that with WebCrypto, the crypto parts of this become one-liners. crypto.subtle.generateKey({name: "RSA-OAEP", hash: "SHA-1"}, true, ["encrypt", "decrypt"]) .then( function(keyPair) { }) On Tue, Nov 4, 2014 at 9:44 AM, Justin Richer <jricher@mit.edu> wrote: > A while ago, I was fed up with creating self-signed X.509 certificates > just to manage the bare keys used in JOSE processing. There's a lot of > extraneous effort that goes into making fake certificate chains that are > then dutifully ignored by the application, especially when the JWK format > can hold both public and private keys natively already. So we switched our > apps over to reading the JWK format instead of X.509, but we still needed > something to securely generate the keys themselves. So I created a > commandline Java application to generate keys in JWK format (based on the > NimbusDS JOSE library): > > https://github.com/mitreid-connect/json-web-key-generator > > It's slightly unwieldy to compile and run but it gets the job done. Last > night, I wrapped that commandline application with a webapp and made it > publicly available: > > https://mkjwk.org/ > > This simple service will generate a JWK in RSA, EC, or Oct (shared secret) > format for you, using Java's cryptographic engine. You can add in the use, > kid, and alg parameters, and the results are formatted into easily-copyable > JSON. It will even wrap the key in a keyset and pull out the public key > separately for you, in case you need those. > > We don't log any of the keys being generated by the service, but to be > extra safe I would still recommend using a local generation mechanism (like > the commandline app above) for production systems. > > Finally, I put the code to the site online in the name of transparency: > > https://github.com/mitreid-connect/mkjwk.org > > I hope that people can find this useful, and we can start moving off of > X.509 for bare key storage in applications. Much thanks to MIT KIT for > providing hosting and support. > > -- Justin > > _______________________________________________ > jose mailing list > jose@ietf.org > https://www.ietf.org/mailman/listinfo/jose >
- Re: [jose] JWK Generator Service Justin Richer
- [jose] JWK Generator Service Justin Richer
- Re: [jose] JWK Generator Service Antonio Sanso
- Re: [jose] JWK Generator Service Richard Barnes
- Re: [jose] JWK Generator Service Richard Barnes
- [jose] WebCrypto incompatible? Re: JWK Generator … Anders Rundgren
- [jose] JWT JSON representation Sergey Beryozkin
- Re: [jose] JWT JSON representation John Bradley