pkg update broke

"William F. Dudley Jr." <[email protected]> Sun, 5 Jul 2026 21:37:04 -0400
Newsgroups gmane.os.freebsd.questions
Message-ID <[email protected]>
I am running "FreeBSD 14.3-RELEASE-p16 amd64".

I did "freebsd-update fetch" followed by "freebsd-update install", and 
the power (and my UPS) failed, I think, during the "freebsd-update 
install" step.

Now, when I run "pkg update", I get this:

pkg: Failed to fetch 
https://pkg.FreeBSD.org/FreeBSD:14:amd64/quarterly/meta.conf: SSL peer 
certificate or SSH remote key was not OK

And identical lines for meta.txz, data.pkg, data.tzst, etc.

I have a nearly identical machine, and that machine can do pkg update
successfully.

I have tried to figure out where pkg stores the SSL certificate or SSH 
key that it's complaining about but have been unsuccessful.  Running 
"man pkg", "man pkg.conf", scanning output of "pkg -vv", running "pkg -f 
bootstrap" all failed to help.

What is broken and how can I fix it?

Thanks,
Bill Dudley