<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/"><channel><atom:link href="https://www.finalbuilder.com/DesktopModules/LiveBlog/API/Syndication/GetRssFeeds?Category=devops&amp;mid=632&amp;PortalId=0&amp;tid=181&amp;ItemCount=20" rel="self" type="application/rss+xml" /><title>VSoft Technologies Blogs</title><description>VSoft Technologies Blogs - posts about our products and software development.</description><link>https://www.finalbuilder.com/resources/blogs</link><item><title>Generating SBOMs for Delphi Projects with DPM</title><link>https://www.finalbuilder.com/resources/blogs/postid/888/generating-sboms-for-delphi-projects-with-dpm-and-finalbuilder</link><category>Delphi,DevOps,DPM,FinalBuilder</category><pubDate>Wed, 12 Aug 2026 01:25:48 GMT</pubDate><description>&lt;style type="text/css"&gt;div.blog_content h1 { font-size: 1.9rem; margin-bottom: 0.3rem; }
    div.blog_content h2 { font-size: 1.4rem; margin-top: 2.2rem; border-bottom: 1px solid #e0e0e0; padding-bottom: 0.4rem; }
    div.blog_content h3 { font-size: 1.15rem; margin-top: 1.6rem; color: #222;}
    div.blog_content strong {  font-weight: 600;  color: #888;}
    div.blog_content .meta { color: #777; font-size: 0.9rem; margin-bottom: 2rem; }
    div.blog_content code { background: #f4f4f4; padding: 0.15em 0.4em; border-radius: 3px; font-size: 0.92em; }
    div.blog_content pre { background: #f4f4f4; padding: 1rem; border-radius: 5px; overflow-x: auto; }
    div.blog_content pre code { background: none; padding: 0; }
    div.blog_content a { color: #0066cc; }
    div.blog_content img { max-width: 100%; border: 1px solid #ddd; border-radius: 4px; margin: 1rem 0; }
    div.blog_content .note { background: #eef6ff; border-left: 4px solid #0066cc; padding: 0.8rem 1rem; margin: 1.2rem 0; border-radius: 0 4px 4px 0; }
    div.blog_content ol { margin: 1rem 0 1.5rem 1.5rem; padding-left: 0.5rem;}
    div.blog_content ol li {  margin-bottom: 0.7rem;  line-height: 1.6;}
    div.blog_content ol li strong {  font-weight: 600;}
    div.blog_content ul li {  margin-bottom: 0.45rem;}
&lt;/style&gt;
&lt;p&gt;Software supply-chain security has become increasingly important over the last few years. One of the things you are likely to encounter if you work on software for larger organisations, government, or regulated industries is the requirement to provide a &lt;a href="https://github.com/resources/articles/what-is-an-sbom-software-bill-of-materials"&gt;&lt;strong&gt;Software Bill of Materials&lt;/strong&gt;&lt;/a&gt;, or SBOM.&lt;/p&gt;

&lt;p&gt;If you've not come across SBOMs before, the basic idea is pretty simple: an SBOM is a list of the software components that make up an application. Rather than just saying "this application uses some third-party libraries", you have a machine-readable document (typically json) that identifies those libraries and, where possible, their versions and other useful information.&lt;/p&gt;

&lt;p&gt;This is useful when you need to answer questions such as:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Which third-party libraries does this application use?&lt;/li&gt;
	&lt;li&gt;Which version of a library was included in a particular release?&lt;/li&gt;
	&lt;li&gt;Are we using a library that has a known security vulnerability?&lt;/li&gt;
	&lt;li&gt;Which applications are affected if a particular library turns out to have a problem?&lt;/li&gt;
	&lt;li&gt;What open source components are included in software we are delivering to a customer?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;SBOMs aren't just about security either. They can be useful for licensing reviews, compliance, software maintenance and simply understanding what is actually going into a build.&lt;/p&gt;

&lt;p&gt;There are several SBOM formats, but two of the commonly used standards are &lt;strong&gt;CycloneDX&lt;/strong&gt; and &lt;strong&gt;SPDX&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;So how do we do this with Delphi?&lt;/p&gt;

&lt;h2&gt;The problem with Delphi dependencies&lt;/h2&gt;

&lt;p&gt;If you have been developing Delphi applications for a while, you probably already know that keeping track of third-party libraries isn't always straightforward.&lt;/p&gt;

&lt;p&gt;There isn't traditionally a single dependency file that tells you everything your application depends on. A project might have components installed into the IDE, libraries checked into source control, search paths pointing at various directories, and third-party source code sitting somewhere on the developer's machine.&lt;/p&gt;

&lt;p&gt;This makes it rather difficult to answer a seemingly simple question:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;What exactly went into this executable?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This is one of the reasons I have been working on &lt;a href="https://delphi.dev"&gt;DPM&lt;/a&gt;, a Delphi Package Manager.&lt;/p&gt;

&lt;p&gt;DPM provides a standard way of installing and managing Delphi libraries and their dependencies. Packages can declare their dependencies, and DPM takes care of installing the appropriate versions for your Delphi compiler and target platform.&lt;/p&gt;

&lt;p&gt;DPM also gives us something particularly useful when it comes to SBOMs: it knows what packages your project depends on (and their dependencies). &lt;/p&gt;

&lt;h2&gt;Generating an SBOM with DPM&lt;/h2&gt;

&lt;p&gt;DPM has an &lt;code&gt;sbom&lt;/code&gt; command which generates an SBOM for a Delphi project or project group.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;pre&gt;
&lt;code&gt;dpm sbom .\\MyProject.dproj&lt;/code&gt;
&lt;/pre&gt;

&lt;p&gt;That's it.&lt;/p&gt;

&lt;p&gt;By default, DPM generates CycloneDX and SPDX JSON files for each enabled platform in the project.&lt;/p&gt;

&lt;p&gt;You can also specify the output directory and format. For example, if you only want a CycloneDX SBOM:&lt;/p&gt;

&lt;pre&gt;
&lt;code&gt;dpm sbom .\\MyProject.dproj -outdir=.\\artifacts -format=cyclonedx&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Or you can generate the human-readable HTML and Markdown reports:&lt;/p&gt;

&lt;pre&gt;
&lt;code&gt;dpm sbom .\MyProject.dproj -format=html,markdown&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;There are a few other options available, including selecting the platforms and build configuration.&lt;/p&gt;

&lt;p&gt;You can also run it against a project group:&lt;/p&gt;

&lt;pre&gt;
&lt;code&gt;dpm sbom .\\MyProjectGroup.groupproj
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;By default this produces an aggregated SBOM for each platform in the group. If you prefer the older behaviour of producing an SBOM for each individual project, you can use &lt;code&gt;-per-project&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The full command documentation is available in the &lt;a href="https://docs.delphi.dev/commands/sbom-command.html"&gt;DPM documentation&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;What does DPM actually find?&lt;/h2&gt;

&lt;p&gt;DPM finds dependencies from two sources:&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;&lt;strong&gt;DPM package metadata.&lt;/strong&gt; DPM follows the dependency chain of every DPM package used by the project and includes those packages in the SBOM.&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;The Delphi linker MAP file.&lt;/strong&gt; This identifies libraries that were linked into the application but are not managed by DPM.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The MAP file is omportant because there is a difference between:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"This directory is in my search path"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;and:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Code from this library was actually linked into my application."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The latter is what we are interested in when generating an SBOM.&lt;/p&gt;

&lt;p&gt;Set &lt;strong&gt;Linking &gt; Map file&lt;/strong&gt; to &lt;strong&gt;Detailed&lt;/strong&gt; for the build configuration being analysed. For example, when analysing a Release build, enable it for the Release configuration.&lt;/p&gt;

&lt;p&gt;If DPM cannot find the MAP file, it warns you and generates a partial SBOM by default. To fail the command instead, use &lt;code&gt;-strict&lt;/code&gt;:&lt;/p&gt;

&lt;pre&gt;
&lt;code&gt;dpm sbom .\MyProject.dproj -strict&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;That can be useful in a build process where you don't want an SBOM to be accidentally published without all of the dependency information.&lt;/p&gt;

&lt;h2&gt;Why use DPM for dependency management?&lt;/h2&gt;

&lt;p&gt;You don't need to use DPM to generate an SBOM.&lt;/p&gt;

&lt;p&gt;However, using a package manager makes the whole process considerably more useful.&lt;/p&gt;

&lt;p&gt;If your dependencies are managed by DPM, you have a known package name and version rather than relying entirely on whatever happens to be installed on a particular developer's machine.&lt;/p&gt;

&lt;p&gt;For example, instead of having a project that depends on some source directory called:&lt;/p&gt;

&lt;pre&gt;
&lt;code&gt;C:\\SomeLibrary\\Source&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;you can have a project dependency on a particular DPM package and version.&lt;/p&gt;

&lt;p&gt;That gives you reproducible builds, makes setting up a new development machine easier, and gives DPM much more information to work with when generating the SBOM.&lt;/p&gt;

&lt;p&gt;It also means the dependency information is part of the project rather than being hidden away in the configuration of a particular developer's machine.&lt;/p&gt;

&lt;p&gt;This is one of the reasons I think package management and SBOM generation fit together particularly well.&lt;/p&gt;

&lt;h2&gt;Adding SBOM generation to a FinalBuilder build&lt;/h2&gt;

&lt;p&gt;The latest update to FinalBuilder includes a &lt;strong&gt;DPM SBOM action&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The action wraps the DPM SBOM functionality, so you can add SBOM generation directly to your Finalbuilder project.&lt;/p&gt;

&lt;p&gt;&lt;img alt="FinalBuilder DPM SBOM Action configuration" src="https://cdn.finalbuilder.com/blog/vincent/sbom-delphi-dpm/fb-dpm-sbom.png" style="width: 560px; height: 554px;" /&gt;&lt;/p&gt;

&lt;p&gt;The basic process is very simple:&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;Add the DPM SBOM action.&lt;/li&gt;
	&lt;li&gt;Specify the project or project group.&lt;/li&gt;
	&lt;li&gt;Choose where you want the SBOM files written.&lt;/li&gt;
	&lt;li&gt;Select the format(s) you want.&lt;/li&gt;
	&lt;li&gt;Configure other options as needed.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The important part here is that SBOM generation becomes just another step in your build process. You don't need a separate script that somebody has to remember to run. You don't need to manually generate an SBOM when a customer asks for one. And you don't need to remember to update it when the dependencies change. It can simply be generated every time you produce a release build.&lt;/p&gt;

&lt;p&gt;The resulting SBOM can then be included with your build artifacts. This is particularly useful if you are producing software for customers who require an SBOM as part of their software delivery process.&lt;/p&gt;

&lt;h2&gt;Which format should I use?&lt;/h2&gt;

&lt;p&gt;If you're not sure, I'd start with &lt;strong&gt;CycloneDX&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;DPM generates CycloneDX 1.6 JSON by default, and this is a good format if the SBOM is going to be consumed by another security or software supply-chain tool.&lt;/p&gt;

&lt;p&gt;&lt;img alt="Example CycloneDX SBOM json" src="https://cdn.finalbuilder.com/blog/vincent/sbom-delphi-dpm/delphi-sbom-cdx.png" style="width: 560px; height: 480px;" /&gt;&lt;/p&gt;

&lt;p&gt;SPDX is another widely used standard, and DPM can generate that too.&lt;/p&gt;

&lt;p&gt;If you just want something that a person can read, the HTML or Markdown output is useful.&lt;/p&gt;

&lt;p&gt;You can also generate everything:&lt;/p&gt;

&lt;pre&gt;
&lt;code&gt;dpm sbom .\MyProject.dproj -format=all&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This gives you machine-readable output for tools as well as something that is convenient to look at yourself.&lt;/p&gt;

&lt;h2&gt;SBOMs aren't just for security teams&lt;/h2&gt;

&lt;p&gt;It's tempting to think of SBOMs as something that only matters if you're working for a large company with a security team.&lt;/p&gt;

&lt;p&gt;I don't think that's necessarily the case. Even on a relatively small Delphi project, having a record of what went into a release can be useful.&lt;/p&gt;

&lt;p&gt;Imagine that six months from now a vulnerability is announced in a library you use. If you have an SBOM for every release, you can look at the SBOMs and quickly determine which releases contain that library.&lt;/p&gt;

&lt;p&gt;Without an SBOM, you might have to remember which version of the library you were using, work out which branch or project was built at the time, and then try to determine whether that code actually made it into the executable.&lt;/p&gt;

&lt;p&gt;An SBOM turns that into a much simpler question.&lt;/p&gt;

&lt;p&gt;You can also keep the SBOM alongside your other build artifacts, so you have a historical record of the software that you shipped.&lt;/p&gt;

&lt;h2&gt;DPM makes this easier&lt;/h2&gt;

&lt;p&gt;SBOM generation wasn't the original reason for building DPM, but once you have proper dependency information, generating an SBOM becomes a natural extension.&lt;/p&gt;

&lt;p&gt;DPM is also designed to work alongside existing Delphi projects and libraries. You don't have to move everything to DPM before you can start using it, and the SBOM command can use the linker MAP file to find non-DPM dependencies too.&lt;/p&gt;

&lt;p&gt;That means you can start small.&lt;/p&gt;

&lt;p&gt;You could begin by using DPM for a few of your third-party libraries, use the &lt;code&gt;dpm sbom&lt;/code&gt; command to see what it produces, and then gradually move more dependencies under package management as it makes sense for your projects.&lt;/p&gt;

&lt;p&gt;And if you're already using FinalBuilder, adding SBOM generation to your build is particularly easy with the DPM SBOM action.&lt;/p&gt;

&lt;h2&gt;Getting started&lt;/h2&gt;

&lt;p&gt;If you haven't tried DPM yet, take a look at &lt;a href="https://delphi.dev"&gt;delphi.dev&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;DPM supports Delphi XE2 and later and provides both command-line and IDE integration. It can install and restore packages, manage dependencies, work with multiple package sources, and handle package signing and trust.&lt;/p&gt;

&lt;p&gt;The SBOM functionality is just one of the things it can do.&lt;/p&gt;

&lt;p&gt;If you already have DPM installed, try this from your project directory:&lt;/p&gt;

&lt;pre&gt;
&lt;code&gt;dpm sbom MyProject.dproj&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;You might be surprised at how much information it can find.&lt;/p&gt;

&lt;p&gt;And if your builds are already managed with FinalBuilder, add the DPM SBOM action to your build and let FinalBuilder generate the SBOM every time you build.&lt;/p&gt;

&lt;p&gt;Once it's part of the build, you don't really have to think about it anymore.&lt;/p&gt;

&lt;p&gt;Which is probably where this sort of thing belongs.&lt;/p&gt;
</description><guid isPermaLink="false">888</guid></item><item><title>Signotaur 2.1: signing documents, not just code</title><link>https://www.finalbuilder.com/resources/blogs/postid/887/signotaur-21-signing-documents-not-just-code</link><category>.NET,Delphi,Deployment,DevOps,Document Signing,Signotaur</category><pubDate>Thu, 06 Aug 2026 03:19:46 GMT</pubDate><description>&lt;style type="text/css"&gt;div.blog_content h1 { font-size: 1.9rem; margin-bottom: 0.3rem; }
    div.blog_content h2 { font-size: 1.4rem; margin-top: 2.2rem; border-bottom: 1px solid #e0e0e0; padding-bottom: 0.4rem; }
    div.blog_content h3 { font-size: 1.15rem; margin-top: 1.6rem; color: #222;}
    div.blog_content strong {  font-weight: 600;  color: #888;}
    div.blog_content .meta { color: #777; font-size: 0.9rem; margin-bottom: 2rem; }
    div.blog_content code { background: #f4f4f4; padding: 0.15em 0.4em; border-radius: 3px; font-size: 0.92em; }
    div.blog_content pre { background: #f4f4f4; padding: 1rem; border-radius: 5px; overflow-x: auto; }
    div.blog_content pre code { background: none; padding: 0; }
    div.blog_content a { color: #0066cc; }
    div.blog_content img { max-width: 100%; border: 1px solid #ddd; border-radius: 4px; margin: 1rem 0; }
    div.blog_content .note { background: #eef6ff; border-left: 4px solid #0066cc; padding: 0.8rem 1rem; margin: 1.2rem 0; border-radius: 0 4px 4px 0; }
    div.blog_content ol { margin: 1rem 0 1.5rem 1.5rem; padding-left: 0.5rem;}
    div.blog_content ol li {  margin-bottom: 0.7rem;  line-height: 1.6;}
    div.blog_content ol li strong {  font-weight: 600;}
    div.blog_content ul li {  margin-bottom: 0.45rem;}
&lt;/style&gt;
&lt;div class="note"&gt;&lt;strong&gt;In this article:&lt;/strong&gt;
&lt;ul&gt;
	&lt;li&gt;Signing PDF, XML and other documents with Signotaur&lt;/li&gt;
	&lt;li&gt;PAdES, XAdES and CAdES signature formats&lt;/li&gt;
	&lt;li&gt;Baseline, timestamped, long-term and archival signatures&lt;/li&gt;
	&lt;li&gt;Document-signing certificates and trust&lt;/li&gt;
	&lt;li&gt;Other changes in Signotaur 2.1&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;

&lt;p&gt;Until now, Signotaur has concentrated on code signing. Version 2.1 adds document signing, using the same client, server and key-custody model. It can sign PDFs, XML files and other data in the standard formats used by document viewers, business systems and archives. The private key remains on the Signotaur server, hardware token or HSM at all times.&lt;/p&gt;

&lt;p&gt;Document signing is included in the Enterprise edition. Code-signing features remain available under the Standard licence.&lt;/p&gt;

&lt;h2&gt;PAdES, XAdES and CAdES&lt;/h2&gt;

&lt;p&gt;Different document types store signatures in different ways. Signotaur supports three ETSI Advanced Electronic Signature formats:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;strong&gt;PAdES&lt;/strong&gt; is used for PDF files. The signature is added as an incremental update without rewriting the existing PDF content, and the file continues to open normally in PDF readers. Signotaur selects PAdES automatically for &lt;code&gt;.pdf&lt;/code&gt; files.&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;XAdES&lt;/strong&gt; is used for XML. By default, the signature is added inside the XML document alongside the content it covers. A detached signature can be written separately when the original XML must remain unchanged. Signotaur selects XAdES automatically for &lt;code&gt;.xml&lt;/code&gt; files.&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;CAdES&lt;/strong&gt; can sign other types of content, such as CSV or JSON data, images and archives. Pass &lt;code&gt;--format cades&lt;/code&gt; to create a detached &lt;code&gt;.p7s&lt;/code&gt; signature beside the original file.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All three are established standards, so signatures created by Signotaur are not tied to Signotaur for verification. They can also be checked by compatible third-party software, including PDF readers that support PAdES.&lt;/p&gt;

&lt;h2&gt;Choosing a signature level&lt;/h2&gt;

&lt;p&gt;A plain signature proves who signed the content and that it has not changed. It does not prove &lt;em&gt;when&lt;/em&gt; it was signed, or that the signing certificate was valid and unrevoked at that moment. Once the certificate expires, a verifier has little to go on. The &lt;code&gt;--level&lt;/code&gt; option chooses how much supporting evidence to include. The same four levels are available across all three formats, and each includes everything from the levels below it:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;strong&gt;&lt;code&gt;baseline&lt;/code&gt;&lt;/strong&gt; includes the signature and signing certificate. This is the default.&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;&lt;code&gt;timestamped&lt;/code&gt;&lt;/strong&gt; adds an RFC 3161 timestamp from a timestamp authority. This establishes when the signature existed without relying on the signer's computer clock, allowing a verifier to see that it was created within the certificate's validity period.&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;&lt;code&gt;long-term&lt;/code&gt;&lt;/strong&gt; also embeds the certificate chain and revocation evidence, using OCSP responses or certificate revocation lists (CRLs). This allows the evidence to be checked later without depending on the issuing CA's services still being available.&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;&lt;code&gt;archival&lt;/code&gt;&lt;/strong&gt; adds another timestamp over the signature and its supporting evidence, recording that the complete package existed intact while its algorithms were still considered secure.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Levels above &lt;code&gt;baseline&lt;/code&gt; require a timestamp authority, supplied with &lt;code&gt;--timestamp-server&lt;/code&gt;. For long-term and archival signatures, Signotaur collects revocation evidence while signing. If it cannot retrieve that evidence, it identifies the affected certificate and continues with a warning. The signature remains valid, but may not be verifiable offline or after the certificate expires.&lt;/p&gt;

&lt;h2&gt;Signing a document&lt;/h2&gt;

&lt;p&gt;Document signing uses the existing &lt;code&gt;sign&lt;/code&gt; command. For a PDF, the simplest form looks like this:&lt;/p&gt;

&lt;pre&gt;
&lt;code&gt;SignotaurTool.exe sign -a [APIKey] -s [SignServer] -t [Thumbprint] contract.pdf&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;To add a timestamp, select the &lt;code&gt;timestamped&lt;/code&gt; level and provide a timestamp authority:&lt;/p&gt;

&lt;pre&gt;
&lt;code&gt;SignotaurTool.exe sign -a [APIKey] -s [SignServer] -t [Thumbprint] --level timestamped --tr http://timestamp.example.com contract.pdf&lt;/code&gt;&lt;/pre&gt;
&lt;!-- SCREENSHOT: Capture a Command Prompt or Windows Terminal run that signs a sample PDF at the timestamped level. Show the selected format and level, timestamp and successful result. Use a placeholder API key or redact it before capture. --&gt;

&lt;p style="text-align: center;"&gt;&lt;img alt="SignotaurTool signing a PDF with a timestamped PAdES signature." src="https://cdn.finalbuilder.com/blog/daves/signotaur-21-signing-documents-not-just-code/pades-sign-output.png" style="max-width: 100%;" /&gt;&lt;/p&gt;

&lt;p&gt;The signed PDF replaces the input file, so retain the original separately if it is still required.&lt;/p&gt;

&lt;p&gt;PDF signatures are invisible by default: the signature is available through the reader's signature panel, but nothing is drawn on the page. Signotaur can instead add a visible signature containing a reason, location and optional logo. A password-protected PDF can also be signed: supply the password needed to open it and the file stays encrypted afterwards.&lt;/p&gt;
&lt;!-- SCREENSHOT: Open a signed sample PDF in Adobe Acrobat Reader. Show a visible signature on the page together with Acrobat's signature panel or validation banner. Do not use a real customer document. --&gt;

&lt;p style="text-align: center;"&gt;&lt;img alt="A visible PAdES signature and signature details shown in Adobe Acrobat Reader." src="https://cdn.finalbuilder.com/blog/daves/signotaur-21-signing-documents-not-just-code/pades-visible-signature.png" style="max-width: 100%;" /&gt;&lt;/p&gt;

&lt;h2&gt;Verifying document signatures&lt;/h2&gt;

&lt;p&gt;The existing &lt;code&gt;verify&lt;/code&gt; command recognises PAdES, XAdES and CAdES as well as the code-signing formats already supported by Signotaur:&lt;/p&gt;

&lt;pre&gt;
&lt;code&gt;SignotaurTool.exe verify contract.pdf invoice.xml invoice.csv.p7s&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Signotaur detects the signature format, including an XML document accompanied by a detached signature, and reports whether each file's signature was verified.&lt;/p&gt;

&lt;h2&gt;Document-signing certificates&lt;/h2&gt;

&lt;p&gt;Code-signing and document-signing certificates are marked for different purposes. Signotaur checks that marking before a signing run begins, so a code-signing certificate cannot normally be used to sign a document, or vice versa.&lt;/p&gt;

&lt;p&gt;An existing document-signing certificate can be registered from a PFX file, the Windows certificate store, or a hardware token or HSM accessed through PKCS#11. When a hardware device is used, the private key remains on that device and Signotaur asks it to perform the signing operation.&lt;/p&gt;

&lt;p&gt;A document-signing certificate can also be issued through Signotaur's Internal CA or Microsoft AD CS. Select &lt;strong&gt;Document signing&lt;/strong&gt; as the purpose in the Issue dialog. Certificates issued by the Internal CA carry the Microsoft, Adobe and RFC 9336 document-signing usages for compatibility with a broad range of verifiers.&lt;/p&gt;
&lt;!-- SCREENSHOT: Capture the Issue Certificate dialog on the Managed Certificates page with Document signing selected as the purpose. Include the subject, key size and validity fields. --&gt;

&lt;p style="text-align: center;"&gt;&lt;img alt="Issuing a document-signing certificate from the Signotaur administration interface." src="https://cdn.finalbuilder.com/blog/daves/signotaur-21-signing-documents-not-just-code/issue-document-signing-certificate.png" style="max-width: 100%;" /&gt;&lt;/p&gt;

&lt;p&gt;Certificates registered before upgrading to 2.1 remain recorded as code signing. Re-register any certificate that should also be available for document signing.&lt;/p&gt;

&lt;h2&gt;Certificate trust&lt;/h2&gt;

&lt;p&gt;Creating a valid signature does not automatically make its certificate trusted by every recipient. Trust is decided by the software or system performing the verification.&lt;/p&gt;

&lt;p&gt;Adobe Acrobat, for example, trusts a signature when its certificate chains to a root that Acrobat trusts. That may be a public root on the Adobe Approved Trust List, or a private root installed by your organisation. Certificates issued by Signotaur's Internal CA are therefore well suited to documents used within an organisation that distributes and trusts its own root certificate. Documents sent outside that environment may need a certificate from a publicly trusted provider.&lt;/p&gt;

&lt;p&gt;Trust and revocation are separate concerns. If signed documents leave your network, Signotaur 2.1 can publish the Internal CA's revocation list and issuer certificate to an external location. Recipients can then check whether a certificate has been revoked without needing access to your internal network. This does not make the Internal CA publicly trusted; recipients must still trust its root separately.&lt;/p&gt;

&lt;p&gt;A trusted certificate is also not necessarily a &lt;em&gt;qualified&lt;/em&gt; certificate in the eIDAS sense, a distinction covered in the documentation.&lt;/p&gt;

&lt;h2&gt;Using document signing in a pipeline&lt;/h2&gt;

&lt;p&gt;Because document signing uses the existing Signotaur client and API-key authentication, it can be added to the same release and automation processes as code signing. A release can sign its executables and accompanying PDF documentation, while another job might sign generated invoices or XML messages.&lt;/p&gt;

&lt;p&gt;The build machine never receives the private key. Access remains controlled through Signotaur, and successful and failed signing requests are recorded in its audit trail.&lt;/p&gt;

&lt;h2&gt;Also in Signotaur 2.1&lt;/h2&gt;

&lt;p&gt;Document signing is the main addition, but version 2.1 also includes several changes to the Internal CA and certificate management:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;strong&gt;Validation Authority.&lt;/strong&gt; The Internal CA can answer OCSP requests and publish CRLs and CA certificates, allowing the status of certificates it issues to be checked.&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;Multiple Intermediate CAs.&lt;/strong&gt; Intermediates can be scoped to web (TLS), code signing, document signing or all purposes, and managed independently.&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;Certificate identities and policies.&lt;/strong&gt; Issued certificates can carry structured subjects and identify the certificate policy under which they were issued.&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;Certificate-management improvements.&lt;/strong&gt; These include a Certificate authorities view, whole-chain downloads and renewal under the Intermediate CA that originally issued the certificate.&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;Certificate-purpose enforcement.&lt;/strong&gt; If a certificate is unsuitable for any artefact in a batch, the run fails before anything is signed. Pass &lt;code&gt;--warn-wrong-purpose&lt;/code&gt; to warn and sign anyway.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;Summary&lt;/h2&gt;

&lt;p&gt;Signotaur 2.1 brings PDFs, XML and other documents into the same controlled signing process already used for software. It supports the standard PAdES, XAdES and CAdES formats, four levels of signing evidence, visible PDF signatures and certificates issued internally or registered from an existing source.&lt;/p&gt;

&lt;p&gt;The private key remains in its controlled location, whether that is the Signotaur server, a hardware token or an HSM. Existing deployment and automation processes can use the same client and API-key model they already use for code signing.&lt;/p&gt;

&lt;hr /&gt;
&lt;p&gt;Full details are available in the &lt;a href="https://docs.finalbuilder.com/sn/2.1/"&gt;Signotaur 2.1 documentation&lt;/a&gt;, including &lt;a href="https://docs.finalbuilder.com/sn/2.1/client/signing-documents.html"&gt;Signing Documents&lt;/a&gt;, &lt;a href="https://docs.finalbuilder.com/sn/2.1/document-signing-certificates.html"&gt;Document Signing Certificates&lt;/a&gt; and the &lt;a href="https://docs.finalbuilder.com/sn/2.1/client/commands/sign-command.html"&gt;sign command&lt;/a&gt; reference.&lt;/p&gt;

&lt;p&gt;See the &lt;a href="https://www.finalbuilder.com/forums/t/signotaur-v2-1-0-198-released/7815"&gt;Signotaur 2.1 release announcement&lt;/a&gt; for the full changelog. To evaluate document signing on an existing installation, request a 14-day Enterprise trial licence from the Licences page in the server administration interface.&lt;/p&gt;
</description><guid isPermaLink="false">887</guid></item><item><title>Signotaur 2.0: managing certificates, not just signing with them</title><link>https://www.finalbuilder.com/resources/blogs/postid/886/signotaur-20-managing-certificates-not-just-signing-with-them</link><category>.NET,Code Signing,DelphiDevOps,Signotaur</category><pubDate>Fri, 26 Jun 2026 01:39:43 GMT</pubDate><description>&lt;style type="text/css"&gt;div.blog_content h1 { font-size: 1.9rem; margin-bottom: 0.3rem; }
    div.blog_content h2 { font-size: 1.4rem; margin-top: 2.2rem; border-bottom: 1px solid #e0e0e0; padding-bottom: 0.4rem; }
    div.blog_content h3 { font-size: 1.15rem; margin-top: 1.6rem; color: #222;}
    div.blog_content strong {  font-weight: 600;  color: #888;}
    div.blog_content .meta { color: #777; font-size: 0.9rem; margin-bottom: 2rem; }
    div.blog_content code { background: #f4f4f4; padding: 0.15em 0.4em; border-radius: 3px; font-size: 0.92em; }
    div.blog_content pre { background: #f4f4f4; padding: 1rem; border-radius: 5px; overflow-x: auto; }
    div.blog_content pre code { background: none; padding: 0; }
    div.blog_content a { color: #0066cc; }
    div.blog_content img { max-width: 100%; border: 1px solid #ddd; border-radius: 4px; margin: 1rem 0; }
    div.blog_content .note { background: #eef6ff; border-left: 4px solid #0066cc; padding: 0.8rem 1rem; margin: 1.2rem 0; border-radius: 0 4px 4px 0; }
    div.blog_content ol { margin: 1rem 0 1.5rem 1.5rem; padding-left: 0.5rem;}
    div.blog_content ol li {  margin-bottom: 0.7rem;  line-height: 1.6;}
    div.blog_content ol li strong {  font-weight: 600;}
    div.blog_content ul li {  margin-bottom: 0.45rem;}
&lt;/style&gt;
&lt;div class="note"&gt;&lt;strong&gt;In this article:&lt;/strong&gt;
    &lt;ul&gt;
        &lt;li&gt;Signing PDF, XML and other documents with Signotaur&lt;/li&gt;
        &lt;li&gt;PAdES, XAdES and CAdES signature formats&lt;/li&gt;
        &lt;li&gt;Baseline, timestamped, long-term and archival signatures&lt;/li&gt;
        &lt;li&gt;Document-signing certificates and trust&lt;/li&gt;
        &lt;li&gt;Other changes in Signotaur 2.1&lt;/li&gt;
    &lt;/ul&gt;
&lt;/div&gt;

&lt;p&gt;Until now, Signotaur has concentrated on code signing. Version 2.1 adds document signing, using the same client, server and key-custody model. It can sign PDFs, XML files and other data in the standard formats used by document viewers, business systems and archives. The private key remains on the Signotaur server, hardware token or HSM at all times.&lt;/p&gt;

&lt;p&gt;Document signing is included in the Enterprise edition. Code-signing features remain available under the Standard licence.&lt;/p&gt;

&lt;h2&gt;PAdES, XAdES and CAdES&lt;/h2&gt;

&lt;p&gt;Different document types store signatures in different ways. Signotaur supports three ETSI Advanced Electronic Signature formats:&lt;/p&gt;

&lt;ul&gt;
    &lt;li&gt;&lt;strong&gt;PAdES&lt;/strong&gt; is used for PDF files. The signature is added as an incremental update without rewriting the existing PDF content, and the file continues to open normally in PDF readers. Signotaur selects PAdES automatically for &lt;code&gt;.pdf&lt;/code&gt; files.&lt;/li&gt;
    &lt;li&gt;&lt;strong&gt;XAdES&lt;/strong&gt; is used for XML. By default, the signature is added inside the XML document alongside the content it covers. A detached signature can be written separately when the original XML must remain unchanged. Signotaur selects XAdES automatically for &lt;code&gt;.xml&lt;/code&gt; files.&lt;/li&gt;
    &lt;li&gt;&lt;strong&gt;CAdES&lt;/strong&gt; can sign other types of content, such as CSV or JSON data, images and archives. Pass &lt;code&gt;--format cades&lt;/code&gt; to create a detached &lt;code&gt;.p7s&lt;/code&gt; signature beside the original file.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All three are established standards, so signatures created by Signotaur are not tied to Signotaur for verification. They can also be checked by compatible third-party software, including PDF readers that support PAdES.&lt;/p&gt;

&lt;h2&gt;Choosing a signature level&lt;/h2&gt;

&lt;p&gt;A plain signature proves who signed the content and that it has not changed. It does not prove &lt;em&gt;when&lt;/em&gt; it was signed, or that the signing certificate was valid and unrevoked at that moment. Once the certificate expires, a verifier has little to go on. The &lt;code&gt;--level&lt;/code&gt; option chooses how much supporting evidence to include. The same four levels are available across all three formats, and each includes everything from the levels below it:&lt;/p&gt;

&lt;ul&gt;
    &lt;li&gt;&lt;strong&gt;&lt;code&gt;baseline&lt;/code&gt;&lt;/strong&gt; includes the signature and signing certificate. This is the default.&lt;/li&gt;
    &lt;li&gt;&lt;strong&gt;&lt;code&gt;timestamped&lt;/code&gt;&lt;/strong&gt; adds an RFC 3161 timestamp from a timestamp authority. This establishes when the signature existed without relying on the signer's computer clock, allowing a verifier to see that it was created within the certificate's validity period.&lt;/li&gt;
    &lt;li&gt;&lt;strong&gt;&lt;code&gt;long-term&lt;/code&gt;&lt;/strong&gt; also embeds the certificate chain and revocation evidence, using OCSP responses or certificate revocation lists (CRLs). This allows the evidence to be checked later without depending on the issuing CA's services still being available.&lt;/li&gt;
    &lt;li&gt;&lt;strong&gt;&lt;code&gt;archival&lt;/code&gt;&lt;/strong&gt; adds another timestamp over the signature and its supporting evidence, recording that the complete package existed intact while its algorithms were still considered secure.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Levels above &lt;code&gt;baseline&lt;/code&gt; require a timestamp authority, supplied with &lt;code&gt;--timestamp-server&lt;/code&gt;. For long-term and archival signatures, Signotaur collects revocation evidence while signing. If it cannot retrieve that evidence, it identifies the affected certificate and continues with a warning. The signature remains valid, but may not be verifiable offline or after the certificate expires.&lt;/p&gt;

&lt;h2&gt;Signing a document&lt;/h2&gt;

&lt;p&gt;Document signing uses the existing &lt;code&gt;sign&lt;/code&gt; command. For a PDF, the simplest form looks like this:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;SignotaurTool.exe sign -a [APIKey] -s [SignServer] -t [Thumbprint] contract.pdf&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;To add a timestamp, select the &lt;code&gt;timestamped&lt;/code&gt; level and provide a timestamp authority:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;SignotaurTool.exe sign -a [APIKey] -s [SignServer] -t [Thumbprint] --level timestamped --tr http://timestamp.example.com contract.pdf&lt;/code&gt;&lt;/pre&gt;

&lt;!-- SCREENSHOT: Capture a Command Prompt or Windows Terminal run that signs a sample PDF at the timestamped level. Show the selected format and level, timestamp and successful result. Use a placeholder API key or redact it before capture. --&gt;
&lt;p style="text-align: center;"&gt;&lt;img src="https://cdn.finalbuilder.com/blog/daves/signotaur-21-signing-documents-not-just-code/pades-sign-output.png" alt="SignotaurTool signing a PDF with a timestamped PAdES signature." style="max-width: 100%;"&gt;&lt;/p&gt;

&lt;p&gt;The signed PDF replaces the input file, so retain the original separately if it is still required.&lt;/p&gt;

&lt;p&gt;PDF signatures are invisible by default: the signature is available through the reader's signature panel, but nothing is drawn on the page. Signotaur can instead add a visible signature containing a reason, location and optional logo. A password-protected PDF can also be signed: supply the password needed to open it and the file stays encrypted afterwards.&lt;/p&gt;

&lt;!-- SCREENSHOT: Open a signed sample PDF in Adobe Acrobat Reader. Show a visible signature on the page together with Acrobat's signature panel or validation banner. Do not use a real customer document. --&gt;
&lt;p style="text-align: center;"&gt;&lt;img src="https://cdn.finalbuilder.com/blog/daves/signotaur-21-signing-documents-not-just-code/pades-visible-signature.png" alt="A visible PAdES signature and signature details shown in Adobe Acrobat Reader." style="max-width: 100%;"&gt;&lt;/p&gt;

&lt;h2&gt;Verifying document signatures&lt;/h2&gt;

&lt;p&gt;The existing &lt;code&gt;verify&lt;/code&gt; command recognises PAdES, XAdES and CAdES as well as the code-signing formats already supported by Signotaur:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;SignotaurTool.exe verify contract.pdf invoice.xml invoice.csv.p7s&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Signotaur detects the signature format, including an XML document accompanied by a detached signature, and reports whether each file's signature was verified.&lt;/p&gt;

&lt;h2&gt;Document-signing certificates&lt;/h2&gt;

&lt;p&gt;Code-signing and document-signing certificates are marked for different purposes. Signotaur checks that marking before a signing run begins, so a code-signing certificate cannot normally be used to sign a document, or vice versa.&lt;/p&gt;

&lt;p&gt;An existing document-signing certificate can be registered from a PFX file, the Windows certificate store, or a hardware token or HSM accessed through PKCS#11. When a hardware device is used, the private key remains on that device and Signotaur asks it to perform the signing operation.&lt;/p&gt;

&lt;p&gt;A document-signing certificate can also be issued through Signotaur's Internal CA or Microsoft AD CS. Select &lt;strong&gt;Document signing&lt;/strong&gt; as the purpose in the Issue dialog. Certificates issued by the Internal CA carry the Microsoft, Adobe and RFC 9336 document-signing usages for compatibility with a broad range of verifiers.&lt;/p&gt;

&lt;!-- SCREENSHOT: Capture the Issue Certificate dialog on the Managed Certificates page with Document signing selected as the purpose. Include the subject, key size and validity fields. --&gt;
&lt;p style="text-align: center;"&gt;&lt;img src="https://cdn.finalbuilder.com/blog/daves/signotaur-21-signing-documents-not-just-code/issue-document-signing-certificate.png" alt="Issuing a document-signing certificate from the Signotaur administration interface." style="max-width: 100%;"&gt;&lt;/p&gt;

&lt;p&gt;Certificates registered before upgrading to 2.1 remain recorded as code signing. Re-register any certificate that should also be available for document signing.&lt;/p&gt;

&lt;h2&gt;Certificate trust&lt;/h2&gt;

&lt;p&gt;Creating a valid signature does not automatically make its certificate trusted by every recipient. Trust is decided by the software or system performing the verification.&lt;/p&gt;

&lt;p&gt;Adobe Acrobat, for example, trusts a signature when its certificate chains to a root that Acrobat trusts. That may be a public root on the Adobe Approved Trust List, or a private root installed by your organisation. Certificates issued by Signotaur's Internal CA are therefore well suited to documents used within an organisation that distributes and trusts its own root certificate. Documents sent outside that environment may need a certificate from a publicly trusted provider.&lt;/p&gt;

&lt;p&gt;Trust and revocation are separate concerns. If signed documents leave your network, Signotaur 2.1 can publish the Internal CA's revocation list and issuer certificate to an external location. Recipients can then check whether a certificate has been revoked without needing access to your internal network. This does not make the Internal CA publicly trusted; recipients must still trust its root separately.&lt;/p&gt;

&lt;p&gt;A trusted certificate is also not necessarily a &lt;em&gt;qualified&lt;/em&gt; certificate in the eIDAS sense, a distinction covered in the documentation.&lt;/p&gt;

&lt;h2&gt;Using document signing in a pipeline&lt;/h2&gt;

&lt;p&gt;Because document signing uses the existing Signotaur client and API-key authentication, it can be added to the same release and automation processes as code signing. A release can sign its executables and accompanying PDF documentation, while another job might sign generated invoices or XML messages.&lt;/p&gt;

&lt;p&gt;The build machine never receives the private key. Access remains controlled through Signotaur, and successful and failed signing requests are recorded in its audit trail.&lt;/p&gt;

&lt;h2&gt;Also in Signotaur 2.1&lt;/h2&gt;

&lt;p&gt;Document signing is the main addition, but version 2.1 also includes several changes to the Internal CA and certificate management:&lt;/p&gt;

&lt;ul&gt;
    &lt;li&gt;&lt;strong&gt;Validation Authority.&lt;/strong&gt; The Internal CA can answer OCSP requests and publish CRLs and CA certificates, allowing the status of certificates it issues to be checked.&lt;/li&gt;
    &lt;li&gt;&lt;strong&gt;Multiple Intermediate CAs.&lt;/strong&gt; Intermediates can be scoped to web (TLS), code signing, document signing or all purposes, and managed independently.&lt;/li&gt;
    &lt;li&gt;&lt;strong&gt;Certificate identities and policies.&lt;/strong&gt; Issued certificates can carry structured subjects and identify the certificate policy under which they were issued.&lt;/li&gt;
    &lt;li&gt;&lt;strong&gt;Certificate-management improvements.&lt;/strong&gt; These include a Certificate authorities view, whole-chain downloads and renewal under the Intermediate CA that originally issued the certificate.&lt;/li&gt;
    &lt;li&gt;&lt;strong&gt;Certificate-purpose enforcement.&lt;/strong&gt; If a certificate is unsuitable for any artefact in a batch, the run fails before anything is signed. Pass &lt;code&gt;--warn-wrong-purpose&lt;/code&gt; to warn and sign anyway.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;Summary&lt;/h2&gt;

&lt;p&gt;Signotaur 2.1 brings PDFs, XML and other documents into the same controlled signing process already used for software. It supports the standard PAdES, XAdES and CAdES formats, four levels of signing evidence, visible PDF signatures and certificates issued internally or registered from an existing source.&lt;/p&gt;

&lt;p&gt;The private key remains in its controlled location, whether that is the Signotaur server, a hardware token or an HSM. Existing deployment and automation processes can use the same client and API-key model they already use for code signing.&lt;/p&gt;

&lt;hr&gt;

&lt;p&gt;Full details are available in the &lt;a href="https://docs.finalbuilder.com/sn/2.1/"&gt;Signotaur 2.1 documentation&lt;/a&gt;, including &lt;a href="https://docs.finalbuilder.com/sn/2.1/client/signing-documents.html"&gt;Signing Documents&lt;/a&gt;, &lt;a href="https://docs.finalbuilder.com/sn/2.1/document-signing-certificates.html"&gt;Document Signing Certificates&lt;/a&gt; and the &lt;a href="https://docs.finalbuilder.com/sn/2.1/client/commands/sign-command.html"&gt;sign command&lt;/a&gt; reference.&lt;/p&gt;

&lt;p&gt;See the &lt;a href="https://www.finalbuilder.com/forums/t/signotaur-v2-1-0-198-released/7815"&gt;Signotaur 2.1 release announcement&lt;/a&gt; for the full changelog. To evaluate document signing on an existing installation, request a 14-day Enterprise trial licence from the Licences page in the server administration interface.&lt;/p&gt;
</description><guid isPermaLink="false">886</guid></item><item><title>Signing files that can't carry a signature: detached CMS for ZIPs, ISOs and more</title><link>https://www.finalbuilder.com/resources/blogs/postid/885/signing-files-that-cant-carry-a-signature-detached-cms-for-zips-isos-and-more</link><category>.NET,Code Signing,DelphiDevOps,Signotaur</category><pubDate>Fri, 12 Jun 2026 02:25:05 GMT</pubDate><description>&lt;style type="text/css"&gt;div.blog_content h1 { font-size: 1.9rem; margin-bottom: 0.3rem; }
    div.blog_content h2 { font-size: 1.4rem; margin-top: 2.2rem; border-bottom: 1px solid #e0e0e0; padding-bottom: 0.4rem; }
    div.blog_content h3 { font-size: 1.15rem; margin-top: 1.6rem; color: #222;}
    div.blog_content strong {  font-weight: 600;  color: #888;}
    div.blog_content .meta { color: #777; font-size: 0.9rem; margin-bottom: 2rem; }
    div.blog_content code { background: #f4f4f4; padding: 0.15em 0.4em; border-radius: 3px; font-size: 0.92em; }
    div.blog_content pre { background: #f4f4f4; padding: 1rem; border-radius: 5px; overflow-x: auto; }
    div.blog_content pre code { background: none; padding: 0; }
    div.blog_content a { color: #0066cc; }
    div.blog_content img { max-width: 100%; border: 1px solid #ddd; border-radius: 4px; margin: 1rem 0; }
    div.blog_content .note { background: #eef6ff; border-left: 4px solid #0066cc; padding: 0.8rem 1rem; margin: 1.2rem 0; border-radius: 0 4px 4px 0; }
    div.blog_content ol { margin: 1rem 0 1.5rem 1.5rem; padding-left: 0.5rem;}
    div.blog_content ol li {  margin-bottom: 0.7rem;  line-height: 1.6;}
    div.blog_content ol li strong {  font-weight: 600;}
    div.blog_content ul li {  margin-bottom: 0.45rem;}
&lt;/style&gt;
&lt;div class="note"&gt;&lt;strong&gt;In this article:&lt;/strong&gt;
&lt;ul&gt;
	&lt;li&gt;Why some files can't carry an embedded signature&lt;/li&gt;
	&lt;li&gt;What a detached &lt;code&gt;.p7s&lt;/code&gt; signature is, and when Signotaur writes one&lt;/li&gt;
	&lt;li&gt;Signing archives and disk images with no extra flags&lt;/li&gt;
	&lt;li&gt;Extending detached signing to arbitrary files with &lt;code&gt;--detached&lt;/code&gt;&lt;/li&gt;
	&lt;li&gt;Controlling the output path, and verifying with Signotaur or OpenSSL&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;p&gt;Most of the file types Signotaur signs have somewhere to &lt;em&gt;put&lt;/em&gt; the signature. A PE binary has a certificate table, an MSI has a digital-signature stream, a NuGet package has a reserved ZIP entry. You sign the file, the signature goes inside it, and the file still works exactly as before.&lt;/p&gt;
&lt;p&gt;Plenty of files people need to sign have no standard embedded-signature format. A &lt;code&gt;.zip&lt;/code&gt;, a &lt;code&gt;.tar.gz&lt;/code&gt;, an &lt;code&gt;.iso&lt;/code&gt;, a firmware blob, a plain &lt;code&gt;.json&lt;/code&gt; manifest — several of these do have comment or metadata areas you could stash bytes in, but there's no agreed-upon signing format that other tools would recognise. You can wrap the whole file inside a signature structure, but that changes the file itself: your zip is no longer a zip, it's a CMS structure containing the zip.&lt;/p&gt;
&lt;p&gt;The standard answer to this is a &lt;strong&gt;detached signature&lt;/strong&gt;: sign the bytes, leave the original artifact untouched, and write the signature to a separate file. Signotaur now supports this directly, producing a standard CMS/PKCS#7 &lt;code&gt;.p7s&lt;/code&gt; signature next to the file it signed.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;CMS&lt;/em&gt; (Cryptographic Message Syntax, &lt;a href="https://datatracker.ietf.org/doc/html/rfc5652"&gt;RFC 5652&lt;/a&gt;) is the IETF standard format for digitally signed data; &lt;em&gt;PKCS#7&lt;/em&gt; is the older format CMS was based on, and the names are still often used interchangeably. The &lt;code&gt;.p7s&lt;/code&gt; extension is the conventional one for a detached CMS signature, which is why you'll see it throughout this post.&lt;/p&gt;
&lt;h2&gt;Archives and disk images: nothing to do&lt;/h2&gt;
&lt;p&gt;Signing a zip while keeping it usable is by far the most common case, so Signotaur &lt;strong&gt;automatically&lt;/strong&gt; uses detached signatures for common archive and disk-image formats, with no extra flags:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;SignotaurTool.exe sign -a [APIKey] -s [SignServer] -t [Thumbprint] release.zip&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;That signs &lt;code&gt;release.zip&lt;/code&gt; and writes the signature to &lt;code&gt;release.zip.p7s&lt;/code&gt; alongside it. &lt;code&gt;release.zip&lt;/code&gt; itself is not touched — same bytes, same hash, still opens in any zip tool. The formats handled this way are &lt;code&gt;.zip&lt;/code&gt;, &lt;code&gt;.7z&lt;/code&gt;, &lt;code&gt;.tar&lt;/code&gt;, &lt;code&gt;.gz&lt;/code&gt;, &lt;code&gt;.tgz&lt;/code&gt;, &lt;code&gt;.bz2&lt;/code&gt;, &lt;code&gt;.xz&lt;/code&gt;, &lt;code&gt;.iso&lt;/code&gt;, &lt;code&gt;.img&lt;/code&gt;, &lt;code&gt;.vhd&lt;/code&gt; and &lt;code&gt;.vhdx&lt;/code&gt;.&lt;/p&gt;
&lt;p style="text-align: center;"&gt;&lt;img src="https://cdn.finalbuilder.com/blog/daves/signotaur-detached-cms/detached-sign-output.png" alt="Command Prompt output of SignotaurTool signing a zip with a detached CMS/PKCS#7 signature; the final line shows the signature written to the matching .p7s file alongside the untouched original."&gt;&lt;/p&gt;
&lt;p&gt;Files that &lt;em&gt;do&lt;/em&gt; have a native embedded format — PE, MSI, NuGet, VSIX, RDP, ClickOnce manifests, &lt;code&gt;.mobileconfig&lt;/code&gt; — keep using it. You don't have to think about which is which; the &lt;code&gt;sign&lt;/code&gt; command routes each file by its type.&lt;/p&gt;
&lt;h2&gt;Other file types: &lt;code&gt;--detached&lt;/code&gt;&lt;/h2&gt;
&lt;p&gt;To produce a detached signature for a file type that Signotaur would not otherwise sign as an embedded format — for example a &lt;code&gt;.txt&lt;/code&gt;, a &lt;code&gt;.json&lt;/code&gt;, an arbitrary binary — add &lt;code&gt;--detached&lt;/code&gt; (&lt;code&gt;--dt&lt;/code&gt;):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;SignotaurTool.exe sign -a [APIKey] -s [SignServer] -t [Thumbprint] --detached manifest.json&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This writes &lt;code&gt;manifest.json.p7s&lt;/code&gt; and leaves &lt;code&gt;manifest.json&lt;/code&gt; alone. The flag is ignored for file types that have their own embedded signature, so it's harmless to leave on in a script that signs a mix of things.&lt;/p&gt;
&lt;h2&gt;Choosing where the signature lands&lt;/h2&gt;
&lt;p&gt;By default the signature is written next to each signed file as &lt;code&gt;[file].p7s&lt;/code&gt;. To put signatures somewhere else, use &lt;code&gt;--signature-file&lt;/code&gt; (&lt;code&gt;--sf&lt;/code&gt;). For a single file you can give an exact path:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;SignotaurTool.exe sign release.zip --signature-file C:\sigs\release.sig ...&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;When signing many files at once, use placeholders so each output is distinct:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;code&gt;{name}&lt;/code&gt; — the file name including extension (&lt;code&gt;archive.zip&lt;/code&gt; → &lt;code&gt;archive.zip.p7s&lt;/code&gt;).&lt;/li&gt;
	&lt;li&gt;&lt;code&gt;{name-no-ext}&lt;/code&gt; — the file name without extension (&lt;code&gt;archive.zip&lt;/code&gt; → &lt;code&gt;archive.p7s&lt;/code&gt;).&lt;/li&gt;
	&lt;li&gt;&lt;code&gt;{rel-path}&lt;/code&gt; — the file path relative to the current directory, or to &lt;code&gt;--base-directory&lt;/code&gt; if specified. This avoids collisions when different folders contain files with the same name.&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;SignotaurTool.exe sign src\**\*.zip --signature-file sigs\{rel-path}.p7s ...&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Any directories in the output path are created for you. An exact (placeholder-free) path is only valid when signing a single file — otherwise every file would write to the same signature file.&lt;/p&gt;
&lt;h2&gt;Verifying&lt;/h2&gt;
&lt;p&gt;A &lt;code&gt;.p7s&lt;/code&gt; file is a plain CMS/PKCS#7 SignedData structure, so it's not locked to Signotaur. Point &lt;code&gt;verify&lt;/code&gt; at either the original or its &lt;code&gt;.p7s&lt;/code&gt; signature and it auto-detects the pairing:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;SignotaurTool.exe verify release.zip&lt;/code&gt;&lt;/pre&gt;
&lt;p style="text-align: center;"&gt;&lt;img src="https://cdn.finalbuilder.com/blog/daves/signotaur-detached-cms/detached-verify-output.png" alt="Terminal output from SignotaurTool verify confirming a valid detached signature, showing the signer certificate and a verified result."&gt;&lt;/p&gt;
&lt;p&gt;And because it's standards-compliant, OpenSSL — or anything else that speaks CMS — can verify it too:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;openssl cms -verify -binary -inform DER -in release.zip.p7s -content release.zip -CAfile root.pem -out NUL&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;That example assumes a signer certificate issued directly by the root in &lt;code&gt;root.pem&lt;/code&gt;; in practice, use whichever CA bundle or certificate chain is appropriate for the signer certificate. (&lt;code&gt;-out NUL&lt;/code&gt; just discards the recovered content so the zip isn't dumped to the console.)&lt;/p&gt;
&lt;p&gt;If you only need an integrity check — confirm the signature matches the content, without deciding whether the signer is trusted — add &lt;code&gt;-noverify&lt;/code&gt;. It skips chain validation, so no &lt;code&gt;root.pem&lt;/code&gt; is required:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;openssl cms -verify -noverify -binary -inform DER -in release.zip.p7s -content release.zip -out NUL&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This confirms the bytes haven't changed since signing, but it does &lt;em&gt;not&lt;/em&gt; establish that you trust the signer — for that, use the chain-validating form above.&lt;/p&gt;
&lt;p&gt;RFC 3161 timestamping works on detached signatures the same as everywhere else — pass &lt;code&gt;--tr&lt;/code&gt; (and optionally &lt;code&gt;--st&lt;/code&gt;) and the timestamp is embedded into the &lt;code&gt;.p7s&lt;/code&gt;.&lt;/p&gt;
&lt;h2&gt;Wrapping up&lt;/h2&gt;
&lt;p&gt;Detached signing extends Signotaur beyond formats with a built-in signature slot. Where a file has a native signing format, Signotaur continues to use it. Where it does not, Signotaur can write a clean &lt;code&gt;.p7s&lt;/code&gt; signature alongside the untouched original.&lt;/p&gt;
&lt;p&gt;The result is still standards-compliant CMS/PKCS#7, so consumers are not tied to Signotaur for verification. More to come, but this removes a "you can't sign that" answer we'd rather not give.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;For the full option reference see the &lt;code&gt;sign&lt;/code&gt; and &lt;code&gt;verify&lt;/code&gt; command pages in the &lt;a href="https://docs.finalbuilder.com/sn/1.0/"&gt;Signotaur documentation&lt;/a&gt;. As always, the private key never leaves your signing server — detached or embedded, only the digest is ever sent for signing.&lt;/p&gt;
</description><guid isPermaLink="false">885</guid></item></channel></rss>