Skip to content

Commit

Permalink
Fixed the help text for sign command
Browse files Browse the repository at this point in the history
  • Loading branch information
settiy-ms committed Aug 15, 2024
1 parent 156dd2e commit 5bd2e52
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
16 changes: 12 additions & 4 deletions CoseSignTool/SignCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -381,10 +381,18 @@ to file.
ContentType /cty: Optional. A MIME type to specify as Content Type in the COSE signature header. Default value is
'application/cose'.
IntHeaders /ih: Optional. Path to a JSON file with headers to add to the signed message. The label is string and the value is int32.
JSON format is [{""label"":""created-at"",""value"":1723672289,""protected"":true},...]. Protected is optional and when ignored, it is set to false.
IntHeaders /ih: Optional. Path to a JSON file containing the header collection to be added to the cose message. The label is a string and the value is int32.
Sample file. [{""label"":""created-at"",""value"":12345678,""protected"":true},{""label"":""customer-count"",""value"":10,""protected"":false}]
StringHeaders /sh: Optional. Path to a JSON file with headers to add to the signed message. The label and value are strings.
JSON format is [{""label"":""company"",""value"":""Microsoft"",""protected"":true},...]. Protected is optional and when ignored, it is set to false.
StringHeaders /sh: Optional. Path to a JSON file containing the header collection to be added to the cose message. Both the label and value are strings.
Sample file. [{""label"":""message-type"",""value"":""cose"",""protected"":false},{""label"":""customer-name"",""value"":""contoso"",""protected"":true}]
IntProtectedHeders /iph: A collection of name-value pairs with a string label and an int32 value. Sample input: /IntProtectedHeaders created-at=12345678,customer-count=10
StringProtectedHeders /sph: A collection of name-value pairs with a string label and value. Sample input: /StringProtectedHeaders message-type=cose,customer-name=contoso
IntUnProtectedHeders /iuh: A collection of name-value pairs with a string label and an int32 value. Sample input: /IntUnProtectedHeaders created-at=12345678,customer-count=10
StringUnProtectedHeders /suh: A collection of name-value pairs with a string label and value. Sample input: /StringUnProtectedHeaders message-type=cose,customer-name=contoso
";
}
4 changes: 2 additions & 2 deletions docs/CoseSignTool.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ The JSON schema is the same for both types of header files. Sample int32 and str
"label": "customer-count",
"value": 10,
"protected": false
},
}
]
~~~

Expand All @@ -67,7 +67,7 @@ The JSON schema is the same for both types of header files. Sample int32 and str
"label": "customer-name",
"value": "contoso",
"protected": true
},
}
]
~~~

Expand Down

0 comments on commit 5bd2e52

Please sign in to comment.