From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60363 Path: news.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: ldap cert retrieval and pem encoding Date: Sat, 28 May 2005 13:53:38 +0200 Message-ID: References: <87wtpkbzyz.fsf@arnested.dk> <874qcnh9kb.fsf@arnested.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1117281140 26328 80.91.229.2 (28 May 2005 11:52:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 28 May 2005 11:52:20 +0000 (UTC) Cc: Ulf Stegemann , ding@gnus.org Original-X-From: ding-owner+M8891@lists.math.uh.edu Sat May 28 13:52:18 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dbzr8-0001oM-C9 for ding-account@gmane.org; Sat, 28 May 2005 13:51:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1DbztE-0000Up-00; Sat, 28 May 2005 06:54:04 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1Dbzt6-0000TZ-00 for ding@lists.math.uh.edu; Sat, 28 May 2005 06:53:56 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1Dbzt5-0007DD-Uo for ding@lists.math.uh.edu; Sat, 28 May 2005 06:53:56 -0500 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net ([217.13.230.178] helo=yxa.extundo.com) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Dbzt2-0000Am-00 for ; Sat, 28 May 2005 13:53:52 +0200 Original-Received: from latte.josefsson.org (c494102a.s-bi.bostream.se [217.215.27.65]) (authenticated bits=0) by yxa.extundo.com (8.13.4/8.13.4/Debian-1) with ESMTP id j4SBrfFC023693 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 28 May 2005 13:53:44 +0200 Original-To: Arne =?iso-8859-1?Q?J=F8rgensen?= OpenPGP: id=B565716F; url=http://josefsson.org/key.txt X-Hashcash: 1:21:050528:ding@gnus.org::TSwOTEQVAY+pzAtf:0Te+ X-Hashcash: 1:21:050528:ulf@zeitform.de::lbuTFk0wezKkEBuP:Lbk X-Hashcash: 1:21:050528:arne@arnested.dk::W+OyI9sux9xVarYm:Ch43 In-Reply-To: <874qcnh9kb.fsf@arnested.dk> (Arne =?iso-8859-1?Q?J=F8rgensen?= =?iso-8859-1?Q?'s?= message of "Sat, 28 May 2005 13:30:28 +0200") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=failed version=3.0.3 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yxa-iv X-Virus-Scanned: ClamAV version 0.84, clamav-milter version 0.84e on yxa.extundo.com X-Virus-Status: Clean X-MIME-Autoconverted: from 8bit to quoted-printable by yxa.extundo.com id j4SBrfFC023693 X-Spam-Score: -4.9 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60363 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:60363 Arne J=F8rgensen writes: > What we could do in Gnus is: > > 1. If it contains "-----BEGIN CERTIFICATE-----" it is in PEM-format. > > 2. Otherwise try to base64-decode it and if that succeeds also assumed > it is in PEM-format. > > 3. Finally decide it must be in DER-format. > > This shouldn't be difficult to implement. I have time make an > implementation on Tuesday. Great! The approach look good to me.