]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix incorrect openssl-smime doc sample command for encrypt
authorZheyu Shen <arsdragonfly@gmail.com>
Wed, 30 Oct 2024 08:34:12 +0000 (08:34 +0000)
committerTomas Mraz <tomas@openssl.org>
Fri, 1 Nov 2024 16:28:01 +0000 (17:28 +0100)
Original documented sample command causes error. PEM recipient cert argument needs to go last.

CLA: trivial

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25829)

(cherry picked from commit 1d160dbf39fbdba89389ddff54e45bacf278b04a)

doc/man1/openssl-smime.pod.in

index 0b5dbb5df8f7fcf43261170d445b89868c469bb4..ffd09704f834e5bdc5fc286c702ea3ada6f08abb 100644 (file)
@@ -394,9 +394,9 @@ Verify a message and extract the signer's certificate if successful:
 
 Send encrypted mail using triple DES:
 
- openssl smime -encrypt -in in.txt -from steve@openssl.org \
+ openssl smime -encrypt -in in.txt -out mail.msg -from steve@openssl.org \
         -to someone@somewhere -subject "Encrypted message" \
-        -des3 user.pem -out mail.msg
+        -des3 user.pem
 
 Sign and encrypt mail: