question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"No signature found"/"No signature was present in the subject" when signing exe

See original GitHub issue

Hi,

Firstly - thanks for your amazing work on jsign. It’s exactly what we need!

We’re trying to sign a Windows exe using a SHA512 key stored in Google KMS and with an EV certificate from GlobalSign, but the digital signature on the exe has the “No signature was present in the subject” message, and verifying with SignTool reports “No signature found”.

I’m running jsign from code, having cloned the repo a couple of days ago.

We created a key like this:

gcloud kms keys create focal-point-code-signing-key \
--keyring code-signing-ring \
--location europe-west2 \
--purpose asymmetric-signing \
--protection-level hsm \
--default-algorithm rsa-sign-pss-4096-sha512

gcloud kms keys versions \
get-public-key 1 \
--location europe-west2 \
--keyring code-signing-ring \
--key focal-point-code-signing-key \
--output-file ./focal-point-code-signing-key.pub

and a CSR using https://github.com/mattes/google-cloud-kms-csr, which we used to get our certificate from GlobalSign. The certificate itself has a signature algorithm of sha256WithRSAEncryption but my understanding is that this doesn’t need to match the signature algorithm we use to sign the exe?

We’re using the following parameters with jsign:

--storetype "GOOGLECLOUD" \
--storepass <token>
--keystore projects/waives-service/locations/europe-west2/keyRings/code-signing-ring
--alias projects/waives-service/locations/europe-west2/keyRings/code-signing-ring/cryptoKeys/focal-point-code-signing-key/cryptoKeyVersions/1
--tsaurl http://timestamp.globalsign.com/tsa/r6advanced1
--tsmode RFC3161
--alg SHA-512
--certfile /home/mark/code/code-signing/focal-point-code-signing-certificate.cer
<file-to-sign.exe>

Do you have any ideas about what could be going on, or suggestions about how we could investigate? We don’t currently have a thread to pull on.

Really appreciate all your work, and any suggestions you might have!

Thanks,

Mark

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:37 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
woohgitcommented, Mar 1, 2022

Hey @MTSym

The PSS will never work as it’s not supported by Windows. The only key that confirmed and works is the:

  • RSASSA-PKCS1 v1_5 with a 4096 bit key and a SHA-256 digest

Do you get any error from jsign when signing or when creating the CSR?

1reaction
woohgitcommented, Dec 16, 2021
image

Million thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

No signature was present in the subject - The Windows Club
This post explains why you see message No signature was present in the subject when you view Signature Properties of the driver package...
Read more >
"No signature was present in the subject" error when signing ...
I'm on Debian v8 / signing a windows EXE. ... The error message "No signature was present in the subject" can be caused...
Read more >
No signature was present in the subject - Microsoft Community
Hello I have issue with Micosoft.Photos.exe its not signed. No signature was present in the subject. Also missing description and company ...
Read more >
Issues · ebourg/jsign - GitHub
Java implementation of Microsoft Authenticode for signing Windows ... "No signature found"/"No signature was present in the subject" when signing exe.
Read more >
Update.exe Blocked; Invalid Signature — TeamViewer Support
This certificate is signed by a different root certificate than what was used in ... If no certificate is found: No output will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found