Error code

macOS -25307

MACOS-25307
System Error Code· A POSIX/system errno returned when a system call fails.

What it means

Security framework error — a Keychain or certificate trust operation returned an unexpected error..

How to fix it

  1. Verify the Mac's date and time are set correctly.
  2. open Keychain Access and run Keychain First Aid.
  3. ensure Apple root certificates are trusted in System Settings > Privacy & Security.

Not affiliated with macOS. Answer summarized from the manufacturer's manual linked above; consult that source for the authoritative procedure.