From owner-freebsd-security@FreeBSD.ORG Thu Mar 18 18:20:03 2010 Return-Path: Delivered-To: freebsd-security@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 90C0C1065670 for ; Thu, 18 Mar 2010 18:20:03 +0000 (UTC) (envelope-from elmstel@gmail.com) Received: from mail-ww0-f54.google.com (mail-ww0-f54.google.com [74.125.82.54]) by mx1.freebsd.org (Postfix) with ESMTP id 24A3C8FC14 for ; Thu, 18 Mar 2010 18:20:02 +0000 (UTC) Received: by wwb18 with SMTP id 18so1358887wwb.13 for ; Thu, 18 Mar 2010 11:20:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=EUUYaZ2k0vijk6OMx6oUC0J9Yth5RbA0kpc6eV7VNX4=; b=QZpN1696Dtj28CpxByOTRwHqQzcDvNOQmasTSTe9CBl29F3B1yNzxmoUt70RIQzG5M 0C3Lcx26yEBs5s8GZicz9fX2TKxQTZaJs9FOK7AJ1nIq/KK+MT3I6UCF1dLxBN5uXzGG C/KdorL0vZLLjnFxwzLuQOm6iN7LlVEefTkUA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=qsCZGNJcraZkZ7eguMLfmAJoQJPSHuQQ77lm3oUASiUmGapYMF5XI5lMtVSs9J1WuZ f1ePI5vgVRF4GGkzuaNIVsnXu46bO0MpVCp95jB5+y+I18QX8qyxmIJvQ+TbJh5U7B2n p7phLXbtS4tcV23SuJq21veU9/bcApEaOf7hg= Received: by 10.216.180.141 with SMTP id j13mr1710792wem.227.1268936401842; Thu, 18 Mar 2010 11:20:01 -0700 (PDT) Received: from scaleo.studiob (91-115-212-10.adsl.highway.telekom.at [91.115.212.10]) by mx.google.com with ESMTPS id p10sm579927gvf.22.2010.03.18.11.19.59 (version=SSLv3 cipher=RC4-MD5); Thu, 18 Mar 2010 11:20:00 -0700 (PDT) Message-ID: <4BA27CDF.1040107@gmail.com> Date: Thu, 18 Mar 2010 19:19:59 +0000 From: Elmar Stellnberger User-Agent: Thunderbird 2.0.0.18 (X11/20081220) MIME-Version: 1.0 To: freebsd-security@freebsd.org, m@micheas.net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Thu, 18 Mar 2010 18:25:40 +0000 Cc: Subject: Re: online cheksum verification for FreeBSD X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Security issues \[members-only posting\]" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Mar 2010 18:20:03 -0000 Unfortunately pkg_check&sign do not seem to exist any more: from 8.0 relnotes: "The pkg_sign and pkg_check utilities for cryptographically signing FreeBSD packages have been removed. They were only useful for packages compressed using gzip(1); however bzip2(1) compression has been the norm for some time now. Besides this I would need pkg_sign to take the checksums from the respective .tbz instead of the local file system. " For sha1, it checksums the file and verifies that the result matches the list of checksums recorded in /var/db/pkg/SHA1." Moreover I would need a script that just downloads the package headers; not the whole packages because otherwise the check procedure would last aeons. I thought there was a version of bzip2 that did signing/encrypting but guess not ... in any case it is not what freebsd uses That way it seemes to me as the easiest viable way to simply provide external checksum lists as the package management depeers a proper checksum handling. Such lists do already exist for Windows and OSX. That way we would not even need a new tool; just checksum lists the user can verify himself. For Linux on the other hand cheksums are provided by the package headers so that we do not need separate checksum lists. > > You can download the packages from: > > ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-stable/ > > and run pkg_check You might be able to extract the signature > from the package. > > The packages themselves are signed. There is no separate > signature file. /etc/ssl/pkg.crt is the location of the public > key for the packages. > P.S.: Sorry for my late reply I must have overlloked your message as I have not been subscribed to freebsd-security.