Samra icon indicating copy to clipboard operation
Samra copied to clipboard

Certificate revoked?

Open avidrissman opened this issue 5 months ago • 5 comments

Trying to run Samra, I get a dialog:

Image

Malware Blocked and Moved to Trash

“Samra.app” was not opened because it contains malware. This action did not harm your Mac.

So I asked spctl what was going on:

% spctl --assess Samra.app
Samra.app: CSSMERR_TP_CERT_REVOKED

Certificate revoked? What’s going on there? Given that macOS 26 is coming up soon, and this is one of the few tools that can actually read .car files, it would be great to have it working.

Thanks!

avidrissman avatar Jul 11 '25 01:07 avidrissman

I'm guessing this is the case, however when trying to resign the app with an ad-hoc certificate, gatekeeper blocked the app from being opened as well.

I ended up compiling the Xcode project manually, which seemed to produce a working build.

SoCuul avatar Jul 15 '25 01:07 SoCuul

I'm guessing this is the case, however when trying to resign the app with an ad-hoc certificate, gatekeeper blocked the app from being opened as well.

You must ad-hoc sign all executables inside the app:

codesign -s - -f /Applications/Samra.app/Contents/MacOS/__preview.dylib
codesign -s - -f /Applications/Samra.app/Contents/MacOS/Samra
codesign -s - -f /Applications/Samra.app/Contents/MacOS/Samra.debug.dylib

This worked for me.

F1248 avatar Jul 15 '25 07:07 F1248

I was able to confirm with NSAntoine that the problem is indeed caused by the certificate expiring, which in turn caused a revocation. Unfortunately it won't be possible for them to upload a newly signed version as they can not currently work on their open source projects.

I've forked the repository and re-built the application using the GitHub actions workflow. You can download the artifact, which should not give you the same error, just open it as you would any unsigned macOS app.

https://github.com/SoCuul/Samra/actions/runs/16399192145

SoCuul avatar Jul 20 '25 11:07 SoCuul

I was also shocked today:

x@Mareks-MacBook-Pro-M1 ~ % spctl -a -vv /Applications/Samra.app 
/Applications/Samra.app: CSSMERR_TP_CERT_REVOKED

Image

xhruso00 avatar Jul 26 '25 05:07 xhruso00

I was able to confirm with NSAntoine that the problem is indeed caused by the certificate expiring, which in turn caused a revocation. Unfortunately it won't be possible for them to upload a newly signed version as they can not currently work on their open source projects.

I've forked the repository and re-built the application using the GitHub actions workflow. You can download the artifact, which should not give you the same error, just open it as you would any unsigned macOS app.

https://github.com/SoCuul/Samra/actions/runs/16399192145

Just wanted to point out to anyone looking into and who could fall upon this that on macOS 15.7 on an M4 MBP this works perfectly. Thanks a lot for the workaround

nicolasonline avatar Sep 20 '25 00:09 nicolasonline