]> 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:27:19 +0000 (17:27 +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)

doc/man1/openssl-smime.pod.in

index 5af095e91e7b9f42a81fb3d92378445169fcd808..330ddf2f875c9e152c39977a2a6f409e2a820c6f 100644 (file)
@@ -397,9 +397,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: