pkg: Error loading trusted certificates

Ferdinand Goldmann ferdinand.goldmann at jku.at
Fri Feb 14 09:16:26 UTC 2014


Hello,

tried to migrate a FreeBSD 9.1-RELEASE-p10 system from old pkg-tools to pkgng
according to the instructions here:
http://www2.at.freebsd.org/doc/handbook/pkgng-intro.html

I manually had to add /etc/pkg/FreeBSD.conf:

# cat /etc/pkg/FreeBSD.conf 
# $FreeBSD: release/10.0.0/etc/pkg/FreeBSD.conf 258710 2013-11-28 14:24:26Z gjb $
FreeBSD: {
  url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}

After that I added a key:

# cat /usr/share/keys/pkg/trusted 
# $FreeBSD: releng/10.0/share/keys/pkg/trusted/pkg.freebsd.org.2013102301 260609 2014-01-13 22:15:57Z bdrewery $

function: "sha256"
fingerprint: "b0170035af3acc5f3f3ae1859dc717101b4e6c1d0a794ad554928ca0cbb2f438"

However, running pkg update failed:

# pkg update                                 
Updating repository catalogue
digests.txz                                                                  100% 1096KB   1.1MB/s   1.1MB/s   00:01    
pkg: Error loading trusted certificates
pkg: Unable to find catalogs

Only when I commented out signature_type and fingerprints in /etc/pkg/FreeBSD.conf pkg update ran
without errors.

I guess this might be due to the fact that the key is meant to be used on FreeBSD 10.0 instead of FreeBSD 9.1 ?

Can anybody tell me where to find a key for FreeBSD 9 ? Unfortuneately, the handbook does not mention the
upgrade process at all. :-(

Best regards,
Ferdinand


More information about the freebsd-stable mailing list