[BUG]: verify says the anchor was changed on macOS, but it's the system openssl (LibreSSL) failing the DigiCert check

Aperta
#364 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@YuvrajVerma09arch ci sta già lavorando.

Dal 22/11/2026.

  • #367 di @YuvrajVerma09arch — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
65/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
macos, python

Direzione di ricerca

Start with verify_reply() in stamp.py, which checks openssl stdout for "Verification: OK" and discards stderr, so certificate errors get reported as a changed anchor. Then check the verify entry point in ovl.py and the manual macOS command in docs/verify.md. Done when openssl's stderr appears in the error, the anchor-changed message is only used for imprint mismatches, and macOS users get a clear note about LibreSSL and openssl@3.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I ran the consistency check from docs/verify.md on my Mac (Apple Silicon, macOS, Python 3.12.14) against release/simple-run, using ovl.py from v1.1.0:

OVL_DEVICE=cpu python ovl-code/simple/ovl.py verify --run . --weights conversation-model.pt
anchor anchor.json: chain head MATCH (38 entries)
anchor timestamp freetsa: OK (Oct 20 14:38:43 2026 GMT)
timestamp anchor.digicert.tsr does not verify for anchor.json: the anchor was changed after it was stamped

The anchor wasn't changed. FreeTSA passes on the same anchor.json, and the DigiCert reply verifies fine with real OpenSSL. The problem is that /usr/bin/openssl on macOS is LibreSSL, and it can't verify this DigiCert chain. Running the manual macOS command from docs/verify.md shows the actual error:

$ openssl version
LibreSSL 3.3.6
$ openssl ts -verify -in anchor.digicert.tsr -data anchor.json -CAfile /etc/ssl/cert.pem
Verification: FAILED
...ts_rsp_verify.c:253:Verify error:unable to get local issuer certificate

Same files, same macOS CA bundle (/etc/ssl/cert.pem, which does contain DigiCert Trusted Root G4 and DigiCert Assured ID Root CA):

  • OpenSSL 3.0.2 on Linux with the macOS cert.pem: Verification: OK
  • Homebrew openssl@3 (3.5.9) on the same Mac, same files and same /etc/ssl/cert.pem: Verification: OK

So it's specific to LibreSSL. My guess is the chain building: the reply's chain goes Responder -> G4 TimeStamping CA -> Trusted Root G4, cross-signed by Assured ID Root CA, and LibreSSL doesn't pick the path OpenSSL does.

There are two separate problems here:

  1. On macOS the DigiCert check can't pass with the default openssl, so verify always fails there.
  2. The message says the anchor was changed, even though openssl failed for a different reason. verify_reply() in stamp.py only looks for "Verification: OK" in stdout and drops stderr, so any openssl failure gets reported as tampering.

Possible fixes:

  • Detect LibreSSL (openssl version) and stop with a clear message telling Mac users to install openssl@3, or let the openssl path be set (an env var, or prefer Homebrew's openssl@3 if it exists). Still fails closed, just with the right reason.
  • Include openssl's stderr in the error, and only say "the anchor was changed" when the imprint doesn't match, not for certificate errors.
  • Mention it in docs/verify.md, since the manual macOS command there fails too.

Related to #290 (DigiCert on Windows), but different: on macOS the CA bundle is found, it's the openssl itself that fails.

I can open a PR for the message and the LibreSSL check if that sounds good.

Lingua principale
Python
Stelle
27
Fork
72
Merge medio
3g 7h
PR unite (30g)
38

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di AOSSIE-Org/OpenVerifiableLLM

Tutte le issue di AOSSIE-Org/OpenVerifiableLLM

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.