sgcSign 2026.11.0 Latest
- 2026.11.0: 2026 November
- NewThe Authenticode verifier is now stricter about what a signed file may carry outside its signature. A certificate table that holds more than one WIN_CERTIFICATE entry is rejected, and so is a signature whose signer carries an unauthenticated attribute other than a timestamp or a nested signature. Neither is covered by the file digest nor by the signer's signature, so both could be used to hide data inside a file that still verified. Files signed by sgcSign, by signtool and by Microsoft keep verifying as before. Reported by a customer, thank you.
- NewOCSP: HashIssuerName and HashIssuerKey of TsgcOCSPClient are now public, so the issuer hashes of a CertID can be computed once for a list of issuer certificates and used to find the issuer of an OCSP response. Both, and BuildCertID, take an optional hash algorithm, SHA-1 by default as before, so a CertID can also be built and matched with SHA-256, SHA-384 or SHA-512. Requested by a customer, thank you.
- NewTsgcSignatureVerifier: new ValidateCertificateChain method, which validates the chain of a certificate outside any signature format. It takes the leaf certificate and the intermediates as DER and a validation time, walks the chain up to the configured trust anchors and applies the configured key usage and revocation settings. It returns the chain it built and a status that tells a valid chain from an untrusted root, an expired or not yet valid certificate, a revoked certificate, an unknown revocation status, a broken signature in the chain and a key usage failure.
- NewTsgcTSAClient: new VerifyToken method, which verifies an existing RFC 3161 timestamp token, for example one embedded in a signature, without contacting the timestamp authority. It checks that the token is about the expected digest and that its signature verifies, and returns the time of the stamp and the certificate of the authority, so its chain can be validated with ValidateCertificateChain.
- FixedInstaller: with Delphi 7 installed under Program Files, the design package was built but not registered in the IDE, and setup reported that dclsgcSignD7.bpl was not found. Setup runs without administrator rights, so Windows saves what the Delphi 7 compiler writes there in the user's VirtualStore folder, where setup did not look. Setup now asks for administrator rights once to copy the packages into the Delphi 7 package folder. If that is declined, it registers the copies Windows saved and tells you what to do when Delphi 7 runs as administrator.
- FixedSetup: fixed the detection of the installed Delphi/C++Builder versions. A version that is not installed no longer stops the trial installer from building the packages of the versions that are installed. A version is now also detected when its App registry value is missing or out of date, and a version that is installed but has not been started yet with the current Windows user is now named on the versions page.
- FixedSetup: the Back button of the versions page now returns to the IDE page; before, it stayed on the versions page. When C++Builder is selected, the versions page no longer lists Delphi 7, 2007 and 2009.
- FixedPKCS#11: several providers can now share one module, for example two tokens served by the same SoftHSM2 or middleware library. The second provider on a module failed with CKR_UNKNOWN (0x00000191), because the module answers CKR_CRYPTOKI_ALREADY_INITIALIZED with 0x191 and the provider expected 0x201, and freeing or rebuilding one provider called C_Finalize and C_Logout for the whole process, which cut off every other provider on that module or token. The module and each token login are now counted per process, so only the first provider initializes or logs in and only the last one finalizes or logs out (a provider logging in on a token while the last one logs out of it on another thread now waits for that logout and logs in again, instead of being left logged out). On the signature server this fixes Test and Save of a live PKCS#11 provider and loading more than one provider on the same library. Several return value names in PKCS#11 error messages were also wrong and now follow the Cryptoki header.
- FixedSignature server: the console "Test" action on a webhook whose stored secret cannot be decrypted no longer sends anything. It used to deliver a server.test event signed with the encrypted enc:v1: text as the HMAC key, while real events were correctly held back. The test now applies the same check as the live deliveries and the console shows "Test not sent: secret cannot be decrypted", the wording of the webhook badge. A delivery waiting in the retry queue is checked again before every attempt, so it is never signed with a secret that has become an enc: value either.
- FixedSignature server: the Users page of the admin console printed the 2FA badge, the linked OpenID Connect identities and their Unlink button as raw markup in the Username column, so an administrator could not unlink an identity from the page. They now render as a badge and a working form, with the user name, identity e-mail and provider name still escaped. The Approval required badge in the Project column of the Providers page had the same fault and is fixed too.
- FixedSignature server: the name fields of the admin console webhook editor and new provider form validate in the browser again. Current browsers compile the pattern attribute with the v flag (unicodeSets), where a hyphen at the end of a character class must be escaped, so they rejected [A-Za-z0-9_.-]+ and [a-z0-9_-]+ as invalid expressions, logged an error in the browser console and silently skipped the check. Both patterns now escape the hyphen and accept exactly the same names as before.
- FixedSignature server: sgcSignServer --help no longer starts the server. --help, -h, -? and /? now print every switch the server knows (the run switches --console and --config, /install and /uninstall on Windows, --selftest-providers, --init-admin, --protect-secrets and --archive with their options) and exit 0 without opening the configuration, the database or the master key. Until now any switch the server did not know was ignored, so --help, a mistyped switch or --config=path started the server on the default configuration, which could fail with "database is locked" when another instance held that database. A run in the console or as the Linux daemon now refuses any switch starting with a dash other than --console and --config, with one line naming the switch and pointing to --help, and exits 2. The Windows service, which the SCM starts without switches, and the /install, /uninstall, --init-admin, --protect-secrets, --selftest-providers and --archive command lines used by Setup and the documentation behave as before.
- FixedSignature server: when the only timestamp server of a sign request could not be reached, the 422 answer read "WinHttpSendRequest failed: " with no URL and no reason. A list of one server now gets the same message as a longer list, "Timestamp failed: all 1 timestamp servers tried failed (<url>: <error>)", and every WinHTTP error now carries its Windows text and code, for example "A connection with the server could not be established (12029)", which also fixes the empty reasons of the sgcsign timestamp command and of every other HTTP call made through WinHTTP.
- FixedSignature server: a backup archive now restores a key or certificate file to every path the configuration names it by. A file referenced twice, for example once by an absolute path and once as certs/test.pfx, was stored under the first reference only, so a restore into another folder left the relative path missing and that provider unavailable. The file is still stored once, and the archive index now records every reference to it.
- FixedSignature server: a XAdES request with no profile, an empty profile or profile none now signs a generic XAdES signature, as the help always said. It used to fail with 422 sign_failed and the message "No signature profile selected". The signature is XAdES-B-B with SHA-256 and no signature policy, and it becomes XAdES-B-T when a timestamp server resolves for the request (its tsa_url, the provider's tsa_urls or timestamp.servers), the same rule as CAdES and an Authenticode request with no level. no_timestamp=true still signs without a timestamp.
- FixedSignature server: sgcSignServer.conf.json is now always written as UTF-8 without a BOM, after a console save of providers or webhooks, after the config repair at start and after an archive restore, the same as --protect-secrets does. Strict JSON readers such as Python json.load accept it. A config that starts with a BOM, hand edited or written by an older build, still loads.
- FixedSignature server: an unreadable master key file (mode 000 on Linux, deny-read lock on Windows) is now reported as "cannot read master key file <path>: <OS reason>" instead of "Cannot create file ...". The read path opens the file read only with deny write.
- FixedSignature server: with no smtp.username (an SMTP relay without authentication) the start no longer logs that smtp.password is not set. The warning appears only when a user name is set and no password is available.
- FixedSignature server: a webhook event name that does not exist (for example "sign" instead of "sign.success") was accepted and never fired. The console now refuses it with the list of valid names and saves nothing. In the config file an unknown name is reported once at startup with the webhook name, the bad event and the valid list, the webhook keeps and delivers its valid events, and a webhook with only unknown events is reported as never firing.
- FixedQA: the Linux64 QA project compiles again (Hardening tests use TThread.GetTickCount, CLI Approval tests import sgcSignQA_Config) and the Hardening tests set the bootstrap password variable on POSIX too.
- FixedSignature server: the admin console showed some names and texts escaped twice, so a value with &, <, " or ' appeared with entities on screen (an API key named R&D read R&D). It affected the API key name, the provider name and last error, the audit actor, target and IP, the project of a user, the profile name and country, the project slug and name, the approval format, provider, requester and message, and the webhook name and events. They are now shown exactly as entered, and every value is still escaped once, so no markup typed into a name can reach the page.
- FixedSignature server: the admin console pages declare their own icon in the head (an inline SVG, allowed by the CSP img-src data:) and /favicon.ico answers 204 No Content without authentication, so the browser no longer logs a 404 on every console page.
- FixedSignature server: a webhook name may only contain letters, digits, "_", "." and "-" (the rule of the console field). The console and AddNamedConfig/UpdateNamedConfig refuse any other name and save nothing. A webhook with an invalid name in the config file stays loaded and delivers, and is reported once at startup (console and audit log) with the rule and the fix (rename it in the config file).
- FixedSignature server: the scheduled backup is now due one backup.interval_hours after the last run stored in the database (successful or failed, scheduled or Backup now), not one interval after every start. A run that came due while the server was stopped starts 5 minutes after the start, so a server restarted every night still takes its daily backup, and a failing backup is retried one interval after the failed attempt, not after each restart. With no stored run the first one is still due one interval after the start, and a changed interval counts from the stored run.