Re: [saag] presentation format for hash of public key

Paul Lambert <paul@marvell.com> Mon, 24 October 2016 22:09 UTC

Return-Path: <paul@marvell.com>
X-Original-To: saag@ietfa.amsl.com
Delivered-To: saag@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 90993129AA6 for <saag@ietfa.amsl.com>; Mon, 24 Oct 2016 15:09:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.601
X-Spam-Level:
X-Spam-Status: No, score=-2.601 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 meB28XnENKQE for <saag@ietfa.amsl.com>; Mon, 24 Oct 2016 15:09:36 -0700 (PDT)
Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B2242129AB0 for <saag@ietf.org>; Mon, 24 Oct 2016 15:09:35 -0700 (PDT)
Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id u9OM544m005002; Mon, 24 Oct 2016 15:09:33 -0700
Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0a-0016f401.pphosted.com with ESMTP id 2685fnaxy0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 24 Oct 2016 15:09:32 -0700
Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1104.5; Mon, 24 Oct 2016 15:09:31 -0700
Received: from SC-EXCH01.marvell.com ([fe80::f170:3920:359e:5bcb]) by SC-EXCH01.marvell.com ([fe80::f170:3920:359e:5bcb%21]) with mapi id 15.00.1104.000; Mon, 24 Oct 2016 15:09:31 -0700
From: Paul Lambert <paul@marvell.com>
To: "Salz, Rich" <rsalz@akamai.com>, Michael Richardson <mcr+ietf@sandelman.ca>, saag <saag@ietf.org>
Thread-Topic: [saag] presentation format for hash of public key
Thread-Index: AQHSLji/AfXON3sg8kCEUn5GUM61QaC4ivYA//+fLgA=
Date: Mon, 24 Oct 2016 22:09:31 +0000
Message-ID: <D433CBB1.A403D%paul@marvell.com>
References: <13018.1477342431@obiwan.sandelman.ca> <f738e80c52a843f4b9facba3f80b183d@usma1ex-dag1mb1.msg.corp.akamai.com>
In-Reply-To: <f738e80c52a843f4b9facba3f80b183d@usma1ex-dag1mb1.msg.corp.akamai.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/14.6.5.160527
x-ms-exchange-messagesentrepresentingtype: 1
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [10.94.250.30]
Content-Type: text/plain; charset="Windows-1252"
Content-ID: <54BF9A3E025A1A4DA0B2ACC7279A291E@marvell.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2016-10-24_16:, , signatures=0
X-Proofpoint-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1610240385
Archived-At: <https://mailarchive.ietf.org/arch/msg/saag/OflQDCxuUPNr1BhwJ665V_E1-Js>
Subject: Re: [saag] presentation format for hash of public key
X-BeenThere: saag@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Security Area Advisory Group <saag.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/saag>, <mailto:saag-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/saag/>
List-Post: <mailto:saag@ietf.org>
List-Help: <mailto:saag-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/saag>, <mailto:saag-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 24 Oct 2016 22:09:38 -0000

In other forums I¹ve been using a hash of the public key
and the associated cipher suite identifier (csi):

    uaid = h( csi , public_key )

The hash used depends on the cipher suite identifier.

The display representation is optimized for readability
and recommends a base27 encoding. For example:

    Q4RM-K4FZ-T432-RZ4Q-ZA88-YQ94

The base27 encode/decode string is:
    b27string = 'ABCDEFGHJKMNPQRTWXYZ2346789'


This string is selected to remove visually the
ambiguous characters:
    0O 1Iil 5S UV

The separator characters (Œ-Œ) are optional, but recommended.

The encoding allows input in lower or upper case, but the
displayed representation should always be upper case for readability.

Paul

PS - example/reference code for base27 in:
    https://github.com/nymble/cryptopy/blob/master/cipher/encoding.py




-----Original Message-----
From: saag <saag-bounces@ietf.org> on behalf of "Salz, Rich"
<rsalz@akamai.com>
Date: Monday, October 24, 2016 at 1:56 PM
To: Michael Richardson <mcr+ietf@sandelman.ca>, saag <saag@ietf.org>
Subject: Re: [saag] presentation format for hash of public key

>For what it's worth, OpenSSL does octet pairs separated by colon.
>; openssl x509  -fingerprint -in apps/server.pem
>SHA1 
>Fingerprint=E8:4A:8E:20:76:4E:EF:0E:ED:BE:54:9F:91:8C:A4:F6:A2:B3:D1:04
>-----BEGIN CERTIFICATE-----
>MIID5zCCAs+gAwIBAgIJALnu1NlVpZ6zMA0GCSqGSIb3DQEBBQUAMHAxCzAJBgNV
>...
>JBv+z1iQRueoh9Qeee+ZbRifPouCB8FDx+AltvHTANdAq0t/K3o+pplMVA==
>-----END CERTIFICATE-----
>
>_______________________________________________
>saag mailing list
>saag@ietf.org
>https://www.ietf.org/mailman/listinfo/saag