Skip to content

Commit 07fd2c8

Browse files
author
Ulrich Buchgraber
committed
Fix missing -binary (otherwise OpenSSL does EOL conversion, which doesn't happen in <create-cms-signature>) and fix misspelled -CAfile parameter name
1 parent c78e144 commit 07fd2c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/artifact-configuration/reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,14 +338,14 @@ The resulting artifact will contain both the original file `myfile.bin` and the
338338
Multiple tools support verification of CMS signature. One popular option is `openssl cms`:
339339

340340
~~~ bash
341-
openssl cms -verify -purpose codesign -content myfile.bin -inform PEM -in myfile.cms.pem -out /dev/null
341+
openssl cms -verify -purpose codesign -content myfile.bin -binary -inform PEM -in myfile.bin.cms.pem -out /dev/null
342342
~~~
343343

344344
{:.panel.warning}
345345
> **OpenSSL CMS verification**
346346
>
347347
> * Prior to OpenSSL 3.2, the `-purpose` flag does not support `codesign`. Use `any` instead.
348-
> * When the certificate is not trusted on the target system, specify `-CAFile` with the path of the root certificate. Make sure that the root certificate is distributed in a secure way.
348+
> * When the certificate is not trusted on the target system, specify `-CAfile` with the path of the root certificate. Make sure that the root certificate is distributed in a secure way.
349349
350350
#### `<create-gpg-signature>`: Detached GPG signing {#create-gpg-signature}
351351

0 commit comments

Comments
 (0)