[BUG]: verify says the anchor was changed on macOS, but it's the system openssl (LibreSSL) failing the DigiCert check
I maintainer di solito rispondono entro 2 giorni
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
- Ambito
- cli, documentation, security
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:
- On macOS the DigiCert check can't pass with the default openssl, so verify always fails there.
- 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
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di AOSSIE-Org/OpenVerifiableLLM
-
[BUG]: ovl.py verify --weights crashes with AttributeError on checkpoint .pt filesForse già presa @panshularora l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
AOSSIE-Org/OpenVerifiableLLM#387 · 2 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
[BUG]: verify_segment accepts empty, wrong-phase, or non-positive fork exclusions as MATCHForse già presa @Arnav0107 l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
AOSSIE-Org/OpenVerifiableLLM#385 · 3 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
[BUG]: preparation.lock install fails on macOSForse già presa @darshith2527-sketch l’ha presa 5 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
AOSSIE-Org/OpenVerifiableLLM#357 · 3 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
[BUG]: Forked runs omit timestamps for inherited chain entriesForse già presa @pavithra-r06 l’ha presa 9 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
AOSSIE-Org/OpenVerifiableLLM#334 · 3 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 2 giorni
-
[BUG]: review_ckpt.py passes a run that has .pt files no chain entry coversForse già presa @arshil42 l’ha presa 9 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
AOSSIE-Org/OpenVerifiableLLM#332 · 4 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di AOSSIE-Org/OpenVerifiableLLM
Issue simili
-
S2-12 Atualizar README.mdAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
-
bug help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
cofade/open-garden-planner#1044 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
python-commandline-toolsAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
codecrafters-io/build-your-own-x#2126 ·
I maintainer di solito rispondono entro 5 giorni
-
documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
julianleno/cortai#10 ·
-
difficulty:easy func:python os:windows prio:high type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
NatronGitHub/Natron#2029 ·
I maintainer di solito rispondono entro 1 giorno