DIGIDOC-TOOL(1)
π DIGIDOC-TOOL(1) π
okay bestie, welcome to the User Commands corner of the manual, where we talk about digidoc-tool β yes that's the title, that's the whole vibe, sit down, hydrate, let's go π«Ά
β¨ NAME β¨
digidoc-tool β create, sign, open, validate, and extend ASiC containers π
π SYNOPSIS π
digidoc-tool COMMAND [OPTIONS] FILE
like⦠command first, then options, then a file. that's the whole formula, no cap.
π¦ DESCRIPTION π¦
so digidoc-tool is a command-line utility for working with digital signature containers. she's giving main character energy fr fr. Supported ASiC-E, ASiC-S, and legacy BDOC 2.1 variants are handled locally. meanwhile PDF, legacy DDOC, and ASiC containers with CAdES signatures get validated through the SiVa Online Service βοΈ and if you pass the --offline option, that service fallback gets disabled, periodt.
ngl the interface is intended for testing and as an API usage example. Its command-line compatibility is not guaranteed between releases. so don't build your whole personality on it staying the same, okay? π
π COMMANDS π
π create
Create and normally sign a container. the output extension is the one picking the format, iconic behavior honestly: ASiC-E (.asice or .sce) or ASiC-S (.asics or .scs) πΈ
An ASiC-S TimeStampToken container requires exactly one --file and --profile=TimeStampToken. The profile alias time-stamp-token is also accepted, we love an alias, we love options π
Example:
digidoc-tool create --file=document.txt signed-document.asice
digidoc-tool create --file=document.txt --profile=TimeStampToken timestamped-document.asics
--file=pathβ Add a data file. bestie this one may occur multiple times for ASiC-E, go wild π--mime=type/subtypeβ Set the MIME type for the preceding--fileoption. The default isapplication/octet-stream.--dontsignβ Create the container without signing it. This is intended for ASiC-E. no signature, just vibes π«Ά
The signing options described under sign are also accepted here. slay, shared options, efficient queen β¨
π§ createBatch
Create and sign a separate ASiC-E container for each regular file in a directory. one container per file, she's organized, she's thriving, she's doing the most π
Example:
digidoc-tool createBatch folder/content/to/sign
π₯ open
Open a document, list its contents, and validate its signatures. the full inspection moment, literally π
Example:
digidoc-tool open container-file.asice
--warnings=ignore|warning|errorβ Select how validation warnings affect output. The default iswarning.--extractAll[=directory]β Extract all data files without validating signatures. Without a directory, files are written to the current directory. no directory? current directory. simple as that.--validateOnExtractβ Validate the container before extracting data files.--offlineβ Do not send unsupported local formats to SiVa. > Service-backed formats cannot be opened in this mode. so if you go offline, some things just stay closed, and that's the deal π
π add
Add data files to an unsigned ASiC-E container. The --file and --mime options have the same meaning as for create. same energy, different command, iykyk β¨
Example:
digidoc-tool add --file=file1.txt container-file.asice
πΈ remove
Remove data files or signatures by their zero-based indexes. Data files can only be removed after all signatures have been removed. that's the rule bestie, signatures first, then the data files, no cutting the line π
Example:
digidoc-tool remove --document=0 --signature=1 container-file.asice
--document=indexβ Data file to remove. This option may occur multiple times.--signature=indexβ Signature to remove. This option may occur multiple times.
π¦ websign
Create an ASiC-E container using external two-step XAdES signing. two steps, very choreography, very routine, ate π
--cert=fileβ PEM signer certificate.
The data-file and signing metadata options described under create and sign are also accepted. she contains multitudes π
π sign
Add an XAdES signature to an existing ASiC-E or legacy BDOC 2.1 container. The signing options are also used by create to add the initial RFC 3161 TimeStampToken to a new ASiC-S container. > An existing ASiC-S container cannot receive another ordinary signature. nope, not happening, that door is closed π
Example:
digidoc-tool sign --pkcs11 container-file.asice
--profile=profileβ Signature profile. Accepted values areTS,TSA,time-stamp,time-stamp-archive,TimeStampToken, andtime-stamp-token. TheTimeStampTokenprofiles are used when creating ASiC-S.--XAdESENβ Use the XAdES EN profile.--city=valueβ City of the signature production place.--street=valueβ Street address of the signature production place for the XAdES EN profile.--state=valueβ State or province of the signature production place.--postalCode=valueβ Postal code of the signature production place.--country=codeβ Two-character country code of the signature production place.--role=valueβ Signer role. This option may occur multiple times, collect them like stickers π--pkcs11[=driver]β Use PKCS#11. If no driver is given, the configured default isopensc-pkcs11.so.--pkcs12=fileβ Use a PKCS#12 software token. The--pinvalue is used as its password.--pin=valueβ PIN or PKCS#12 password. PKCS#11 prompts for a PIN when this is omitted. don't stress, she'll ask π«Ά--cngβ On Windows, use the Microsoft CNG signing API.--selectFirstβ On Windows, select the first suitable certificate instead of showing a selection dialog.--thumbprint=hexβ On Windows, select a certificate by its hexadecimal thumbprint.--sha224|--sha256|--sha384|--sha512β Select the data digest algorithm. The default is SHA-256.--sigsha224|--sigsha256|--sigsha384|--sigsha512β Select the signature digest algorithm. The default is SHA-256.--sigpsssha224|--sigpsssha256|--sigpsssha384|--sigpsssha512β Select the signature digest algorithm and RSA-PSS padding.--rsapkcs15β Use RSA PKCS#1 v1.5 padding.--rsapssβ Use RSA-PSS padding.--tsurl=urlβ Override the configured time-stamping service URL.--userAgent=valueβ Send additional application information to the TSA or OCSP service.--dontValidateβ Do not validate the newly created signature.
β extend
Add new validity evidence and save the result. glow-up for your signatures, honestly iconic π
Without --signature, the high-level validity-extension workflow chooses the required profile. It extends eligible ASiC-E or ASiC-S signatures in place, or wraps the original container in a new timestamped ASiC-S container when necessary. she decides, she's the main character here π
With one or more --signature options, only the selected signatures are extended directly. you pick, she extends, teamwork π
Examples:
digidoc-tool extend container-file.asice
digidoc-tool extend --signature=0 --profile=TSA container-file.asice
--signature=indexβ Zero-based signature index to extend directly. This option may occur multiple times.--profile=profileβ Direct extension profile:TS,TSA,time-stamp, ortime-stamp-archive. This is chosen automatically when--signatureis omitted.--dontValidateβ Do not validate a directly extended signature after extension.
π version
Print the digidoc-tool and libdigidocpp versions. both of them, together, cute π
π GLOBAL OPTIONS π
--nocolorβ Disable terminal colors. (a tragedy, but valid π)--loglevel=0|1|2|3|4β Set logging to none, error, warning, info, or debug respectively.--logfile=fileβ Write logs to a file. An empty value writes logs to the console.
π SEE ALSO π
that's the whole page bestie, you made it to the end π this was digidoc-tool version 4.5.1.0, dated 2026-10-13, brought to you by the User Commands girlies. go forth and sign something πβ¨π
π¦ where this page comes from
- fedora 43: libdigidocpp 4.5.1-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: libdigidocpp 4.5.1-1.fc44 Β· LicenseRef-Callaway-LGPLv2+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms