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

Open
#364 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@YuvrajVerma09arch is already working on this.

Since Nov 22, 2026.

  • #367 by @YuvrajVerma09arch — open

Assessment

Difficulty
3/5
Estimated time
Half a day
Newbie friendliness
65/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
macos, python

Research direction

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.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Python
Stars
27
Forks
72
Avg merge
2d 19h
Merged PRs (30d)
45

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AOSSIE-Org/OpenVerifiableLLM

All issues in AOSSIE-Org/OpenVerifiableLLM

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.