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.

Add ability to sign with additional certificates

See original GitHub issue

Various other signing tools offer the ability to sign with additional certificates:

SignTool:

Sign command option Description
/ac file Adds an additional certificate from file to the signature block.

AzureSignTool:

Sign command option Description
–additional-certificates [short: -ac, required: no] A list of paths to additional certificates to aide in building a full chain for the signing certificate. Azure SignTool will build a chain, either as deep as it can or to a trusted root. This will also use the Windows certificate store, in addition to any certificates specified with this option. Specifying this option does not guarantee the inclusion of the certificate, only if it is part of the chain. To include multiple certificates, specify this option mulitple times, such as -ac file1.cer -ac file2.cer. The files specified must be public certificates only. They cannot be PFX, PKCS12 or PFX files.

It would be great if jsign also had this ability.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:21 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
ebourgcommented, Jul 12, 2022

The only difference when using the /ac flag with signtool is that the dummy cert doesn’t appear in the digital signature list on the file properties (I’m not sure why that’s the case?)

Because the dummy certificate isn’t used for signing, it’s simply appended to the certificate store embedded within the signature. This store is used by Windows to link the signing certificate with the CA certificate (this is necessary if some of the intermediate certificates are unknown to Windows). The dummy certificate doesn’t participate in the certificate chain and is invisible in the file properties. The signature is simply larger.

The addUnauthenticatedBlob feature is slightly different, it adds an entry into the unauthenticated attributes table of the signature. That’s more compact that injecting a whole certificate, but it’s visible in the file properties

Should this be closed, or changed to be the issue for adding the functionality of addUnauthenticatedBlob?

No I’m still pondering if /ac is worth implementing, I’m just looking for a good use case. I’m tempted to extend the semantic of the certfile parameter and simply add all the certificates in this file even if they do not participate in the certificate chain.

1reaction
ebourgcommented, Jul 11, 2022

@MrAlex94 Thank you for the clarification. osslsigncode supports the -addUnauthenticatedBlob parameter to inject bytes into the signature that can be altered without invalidating it. That’s a simpler alternative than fiddling with the additional certificates. This is a feature I’d like to implement in Jsign as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Certificate-based signatures, Adobe Acrobat
Certifying and signing documents ... The Sign > Work with Certificates panel lets you apply two types of certificate-based signatures. You can ...
Read more >
Digital signatures and certificates - Microsoft Support
Signing certificate To create a digital signature, you need a signing certificate, which proves identity. When you send a digitally-signed macro or document, ......
Read more >
Digitally Sign using CAC Certificates - YouTube
Digitally Sign using CAC Certificates. 99K views · 5 years ago ... more. Isaac Bancroft. 525. Subscribe. 573. Share. Save. Report ...
Read more >
Document Signing Certificates: How to Install and Use - Entrust
1. Insert your token into a USB port. · 2. In the notification email sent to you by Entrust, click the link to...
Read more >
Certificates - Support - Apple Developer
Users will no longer be able to run apps that have been signed with this certificate. You must distribute a new version of...
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