Skip to content

Commit fa8f479

Browse files
committed
Update reference.md
Added custom-sign sample
1 parent 73ceb08 commit fa8f479

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

docs/artifact-configuration/reference.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -730,15 +730,27 @@ Contact [SignPath Support](https://signpath.io/support) for adding and registeri
730730

731731
Provide the registered method name and any parameters defined by that method.
732732

733-
##### Example
733+
##### `<custom-sign` example (embedded)
734+
735+
Sign the input file using the custom signing method `demo-pkcs11tool` with a custom parameter `signature-hash-algorithm`.
736+
737+
~~~ xml
738+
<artifact-configuration xmlns="http://signpath.io/artifact-configuration/v1">
739+
<file>
740+
<custom-sign method="demo-pkcs11tool" signature-hash-algorithm="sha256"/>
741+
</file>
742+
</artifact-configuration>
743+
~~~
744+
745+
##### `<create-custom-signature` example (detached)
734746

735-
Create a `.sig` signature file for each `.txt` file using the custom signing method `demo-pkcs11tool` with a custom parameter `signature-hash-algorithm`.
747+
Create a `.sig` signature file for each `.txt` file using the custom signing method `demo-pkcs11tool`.
736748

737749
~~~ xml
738750
<artifact-configuration xmlns="http://signpath.io/artifact-configuration/v1">
739751
<zip-file>
740752
<file path="*.txt" max-matches="unbounded">
741-
<create-custom-signature method="demo-pkcs11tool" output-file-name="${file.name}.sig" signature-hash-algorithm="sha256">
753+
<create-custom-signature method="demo-pkcs11tool" output-file-name="${file.name}.sig">
742754
</directory>
743755
</zip-file>
744756
</artifact-configuration>

0 commit comments

Comments
 (0)