W3C home > Mailing lists > Public > public-credentials@w3.org > November 2014

Re: Digital Signatures for Credentials

From: Anders Rundgren <anders.rundgren.net@gmail.com>
Date: Sun, 23 Nov 2014 14:08:22 +0100
Message-ID: <5471DC46.9080605@gmail.com>
To: Harry Halpin <hhalpin@w3.org>, Melvin Carvalho <melvincarvalho@gmail.com>
CC: Dave Longley <dlongley@digitalbazaar.com>, ☮ elf Pavlik ☮ <perpetual-tripper@wwelves.org>, W3C Credentials Community Group <public-credentials@w3.org>, Stéphane Boyera <boyera@w3.org>
The topic can also be expressed as this...

IETF/W3C's view on the matter:
eyJhbGciOiJSUzI1NiIsIng1YyI6WyJNSUlFUkRDQ0FpeWdBd0lCQWdJR0FVbXRwcWwyTUEwR0NTcUdTSWIzRF
FFQkRRVUFNQ1l4Q3pBSkJnTlZCQVlUQWxWVE1SY3dGUVlEVlFRREV3NU5lVUpoYm1zZ1VtOXZkQ0JEUVRBZUZ3
MHhOREEzTVRBeE1EQXdNREJhRncweE9UQTNNVEF3T1RVNU5UbGFNQ3d4RVRBUEJnTlZCQVVUQ0RrMU5qY3pOVE
l5TVJjd0ZRWURWUVFERXc1TWRXdGxJRk5yZVhkaGJHdGxjakNDQVNJd0RRWUpLb1pJaHZjTkFRRUJCUUFEZ2dF
UEFEQ0NBUW9DZ2dFQkFJTnJaUEhienhSSFBZSVRKM0NZNTRwV2x5N1NTL1lzb25NeEZtMy9QMzNVaUQ1VlVoaX
pzL3JsNkM2TC9NUlhLeENiY3hlSUpMQ3hObENLbHBpdk1MUExndExJVGYwYTNtZTBBek1md3lrRUxLbEF4OFJM
dUlBTzV1YWxkeEl4cVc5Y2pQejY2VVdpTjI5dTM4c1RVaUZ6ZWFUZmYzKzQ1VjNiMXluQVZURFdpUzJlZnRDNT
hKQW5Qbjg4b09QTXpER1FGRzd2cWxQSlJYRy9waC9tNnpUWWw0YVpwOGlQbUFqRUttcGxyVDlDWWc2bW1HdEN2
bmtmZ1ZNUVh4aTdqbmlSM1JxdCtLbHh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_zvKtj2bmfsINHlX-xJaGMOA9doJk_I77RzE-7W0DVrSMVxPj29
4aCiMHxX7BxE0tX65m_ZaAE7UI0k6t1rsorqtll1mCFtmVN-Eifiv0Ric6GQ

Another view of the same thing:

{
   "@context": "http://xmlns.webpki.org/wcpp-signature-demo",
   "@qualifier": "SignatureResponse",
   "RequestData":
     {
       "Origin": "https://localhost:8442/WCPPSignatureDemo/signcmd",
       "ReferenceID": "#1000013",
       "DateTime": "2014-11-23T12:51:52Z"
     },
   "DocumentData":
     {
       "MIMEType": "text/html",
       "DocumentHash":
         {
           "Algorithm": "http://www.w3.org/2001/04/xmlenc#sha256",
           "Value": "X4l_O2_QQVqvr2JwVnSTysu58G7dMY19PcU63gEl0eI"
         }
     },
   "DateTime": "2014-11-23T12:51:58Z",
   "Signature":
     {
       "Algorithm": "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256",
       "KeyInfo":
         {
           "SignatureCertificate":
             {
               "Issuer": "CN=MyBank Root CA,C=US",
               "SerialNumber": "1415957621110",
               "Subject": "CN=Luke Skywalker,2.5.4.5=#13083935363733353232"
             },
           "X509CertificatePath":
             [
               "MIIERDCCAiygAwIBAgIGAUmtpql2MA0GCSqGSIb3DQEBDQUAMCYxCzAJBgNVBAYTAlVTMRcwFQYDVQQDEw5NeUJhbmsgUm9vdCBDQTAeFw0xNDA3MTAxMDAwMDBaFw0xOTA3MTAwOTU5NTlaMCwxETAPBgNVBAUTCDk1NjczNTIyMRcwFQYDVQQDEw5MdWtlIFNreXdhbGtlcjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAINrZPHbzxRHPYITJ3CY54pWly7SS_YsonMxFm3_P33UiD5VUhizs_rl6C6L_MRXKxCbcxeIJLCxNlCKlpivMLPLgtLITf0a3me0AzMfwykELKlAx8RLuIAO5ualdxIxqW9cjPz66UWiN29u38sTUiFzeaTff3-45V3b1ynAVTDWiS2eftC58JAnPn88oOPMzDGQFG7vqlPJRXG_ph_m6zTYl4aZp8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ApiEH4l5YaU-7W1F18QPvQC9rsOL9bsrrIdVPbw3mXWQxlf8FSv9FiitD0Qu1LeGm-YKBb0ZBnMS__fq8Ne8vYk6HvrgDVE64RPvNvGeK8seodX-Vdek-UU9OaGA6YqYocl5B1XWtSwgs0Wv971cayJYm7yQ-IMsylF5IbZcKXwt1WLkyy66LkV9x-FI3PbDqJBOC7Uz5XkEpW831O6XRon708KLRsm3E9awYDDgOo9ndPrztFrfVNatWVUAFepR39Ysfy7QiqrQO9OBFv-mIRzLQDQ"
     }
}


Why would you settle on Base64 unless it was proved that it was absolutely necessary?
For the OpenID use-case "URL-friendly" signatures are needed but there are other use-cases.

Both signatures are authentic and generated by Chrome using WebCrypto and some trivial amounts of supporting code.

Anders
Received on Sunday, 23 November 2014 13:08:54 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 11 July 2018 21:19:21 UTC