Re: pkg bootstrap and chroot

From: Lexi Winter <ivy_at_freebsd.org>
Date: Sat, 16 Aug 2025 21:53:51 UTC
Graham Perrin:
> After chroot to /tmp/altroot:
> 
> * what is required for pkg bootstrap to succeed?
>[...] 
> Certificate verification failed for /C=US/O=Let's Encrypt/CN=E5
> 0820854BD01D0000:error:16000069:STORE routines:ossl_store_get0_loader_int:unregistered scheme:/home/pkgbuild/worktrees/releng/14.3/crypto/openssl/crypto/store/store_register.c:237:scheme=file
> 0820854BD01D0000:error:80000002:system library:file_open:No such file or directory:/home/pkgbuild/worktrees/releng/14.3/crypto/openssl/providers/implementations/storemgmt/file_store.c:267:calling stat(/etc/ssl/certs/4042bcee.0)

you probably need to install FreeBSD-caroot and FreeBSD-certctl in the
chroot.  one of these depends on the other, but the dependency was
reversed recently and i can't remember which way around it is now,
so just install both.