summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjmc <>2016-08-20 12:54:49 +0000
committerjmc <>2016-08-20 12:54:49 +0000
commit67a0c1f0a5d6395298e34c468077076648881e92 (patch)
tree25c7b398cca821d0f06e789a70f775a93b1a7854 /src
parentd41b9c2964a637485383a315babf5be705900a50 (diff)
downloadopenbsd-67a0c1f0a5d6395298e34c468077076648881e92.tar.gz
openbsd-67a0c1f0a5d6395298e34c468077076648881e92.tar.bz2
openbsd-67a0c1f0a5d6395298e34c468077076648881e92.zip
shorten pkcs7 text;
Diffstat (limited to 'src')
-rw-r--r--src/usr.bin/openssl/openssl.195
1 files changed, 37 insertions, 58 deletions
diff --git a/src/usr.bin/openssl/openssl.1 b/src/usr.bin/openssl/openssl.1
index 971cb43fd2..301bc22694 100644
--- a/src/usr.bin/openssl/openssl.1
+++ b/src/usr.bin/openssl/openssl.1
@@ -1,4 +1,4 @@
1.\" $OpenBSD: openssl.1,v 1.56 2016/08/20 07:56:09 jmc Exp $ 1.\" $OpenBSD: openssl.1,v 1.57 2016/08/20 12:54:49 jmc Exp $
2.\" ==================================================================== 2.\" ====================================================================
3.\" Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. 3.\" Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved.
4.\" 4.\"
@@ -1729,7 +1729,7 @@ Encrypt the input data.
1729This is the default. 1729This is the default.
1730.It Fl in Ar file 1730.It Fl in Ar file
1731The input file to read from, 1731The input file to read from,
1732or standard input if none is specified. 1732or standard input if not specified.
1733.It Fl iv Ar IV 1733.It Fl iv Ar IV
1734The actual 1734The actual
1735.Ar IV 1735.Ar IV
@@ -1801,7 +1801,7 @@ since it makes it possible to perform efficient dictionary
1801attacks on the password and to attack stream cipher encrypted data. 1801attacks on the password and to attack stream cipher encrypted data.
1802.It Fl out Ar file 1802.It Fl out Ar file
1803The output file to write to, 1803The output file to write to,
1804or standard output if none is specified. 1804or standard output if not specified.
1805.It Fl P 1805.It Fl P
1806Print out the salt, key, and IV used, then immediately exit; 1806Print out the salt, key, and IV used, then immediately exit;
1807don't do any encryption or decryption. 1807don't do any encryption or decryption.
@@ -1885,7 +1885,7 @@ A pass phrase is prompted for.
1885If none of these options are specified, no encryption is used. 1885If none of these options are specified, no encryption is used.
1886.It Fl out Ar file 1886.It Fl out Ar file
1887The output file to write to, 1887The output file to write to,
1888or standard output if none is specified. 1888or standard output if not specified.
1889.It Ar paramfile 1889.It Ar paramfile
1890Specify the DSA parameter file to use. 1890Specify the DSA parameter file to use.
1891The parameters in this file determine the size of the private key. 1891The parameters in this file determine the size of the private key.
@@ -1939,7 +1939,7 @@ or
1939options. 1939options.
1940.It Fl out Ar file 1940.It Fl out Ar file
1941The output file to write to, 1941The output file to write to,
1942or standard output if none is specified. 1942or standard output if not specified.
1943.It Fl outform Cm der | pem 1943.It Fl outform Cm der | pem
1944The output format. 1944The output format.
1945.It Fl paramfile Ar file 1945.It Fl paramfile Ar file
@@ -2032,7 +2032,7 @@ if it is not supplied via the
2032option. 2032option.
2033.It Fl out Ar file 2033.It Fl out Ar file
2034The output file to write to, 2034The output file to write to,
2035or standard output if none is specified. 2035or standard output if not specified.
2036.It Fl passout Ar arg 2036.It Fl passout Ar arg
2037The output file password source. 2037The output file password source.
2038.It Ar numbits 2038.It Ar numbits
@@ -2223,7 +2223,7 @@ This is normally only be used for debugging
2223since it disables all verification of the responder's certificate. 2223since it disables all verification of the responder's certificate.
2224.It Fl out Ar file 2224.It Fl out Ar file
2225Specify the output file to write to, 2225Specify the output file to write to,
2226or standard output if none is specified. 2226or standard output if not specified.
2227.It Fl req_text , resp_text , text 2227.It Fl req_text , resp_text , text
2228Print out the text form of the OCSP request, response, or both, respectively. 2228Print out the text form of the OCSP request, response, or both, respectively.
2229.It Fl reqin Ar file , Fl respin Ar file 2229.It Fl reqin Ar file , Fl respin Ar file
@@ -2481,39 +2481,47 @@ Read passwords from standard input.
2481In the output list, prepend the cleartext password and a TAB character 2481In the output list, prepend the cleartext password and a TAB character
2482to each password hash. 2482to each password hash.
2483.El 2483.El
2484.\"
2485.\" PKCS7
2486.\"
2487.Sh PKCS7 2484.Sh PKCS7
2488.nr nS 1 2485.nr nS 1
2489.Nm "openssl pkcs7" 2486.Nm "openssl pkcs7"
2490.Bk -words
2491.Op Fl in Ar file 2487.Op Fl in Ar file
2492.Op Fl inform Ar DER | PEM 2488.Op Fl inform Cm der | pem
2493.Op Fl noout 2489.Op Fl noout
2494.Op Fl out Ar file 2490.Op Fl out Ar file
2495.Op Fl outform Ar DER | PEM 2491.Op Fl outform Cm der | pem
2496.Op Fl print_certs 2492.Op Fl print_certs
2497.Op Fl text 2493.Op Fl text
2498.Ek
2499.nr nS 0 2494.nr nS 0
2500.Pp 2495.Pp
2501The 2496The
2502.Nm pkcs7 2497.Nm pkcs7
2503command processes PKCS#7 files in DER or PEM format. 2498command processes PKCS#7 files in DER or PEM format.
2499The PKCS#7 routines only understand PKCS#7 v 1.5 as specified in RFC 2315.
2500They cannot currently parse, for example, the new CMS as described in RFC 2630.
2501.Pp
2502The PEM PKCS#7 format uses the header and footer lines:
2503.Bd -unfilled -offset indent
2504-----BEGIN PKCS7-----
2505-----END PKCS7-----
2506.Ed
2507.Pp
2508For compatibility with some CAs it will also accept:
2509.Bd -unfilled -offset indent
2510-----BEGIN CERTIFICATE-----
2511-----END CERTIFICATE-----
2512.Ed
2504.Pp 2513.Pp
2505The options are as follows: 2514The options are as follows:
2506.Bl -tag -width Ds 2515.Bl -tag -width Ds
2507.It Fl in Ar file 2516.It Fl in Ar file
2508This specifies the input 2517The input file to read from,
2509.Ar file 2518or standard input if not specified.
2510to read from, or standard input if this option is not specified. 2519.It Fl inform Cm der | pem
2511.It Fl inform Ar DER | PEM 2520The input format.
2512This specifies the input format. 2521.Cm der
2513.Ar DER
2514format is a DER-encoded PKCS#7 v1.5 structure. 2522format is a DER-encoded PKCS#7 v1.5 structure.
2515.Ar PEM 2523.Cm pem
2516.Pq the default 2524(the default)
2517is a base64-encoded version of the DER form with header and footer lines. 2525is a base64-encoded version of the DER form with header and footer lines.
2518.It Fl noout 2526.It Fl noout
2519Don't output the encoded version of the PKCS#7 structure 2527Don't output the encoded version of the PKCS#7 structure
@@ -2521,45 +2529,16 @@ Don't output the encoded version of the PKCS#7 structure
2521.Fl print_certs 2529.Fl print_certs
2522is set). 2530is set).
2523.It Fl out Ar file 2531.It Fl out Ar file
2524Specifies the output 2532The output to write to,
2525.Ar file 2533or standard output if not specified.
2526to write to, or standard output by default. 2534.It Fl outform Cm der | pem
2527.It Fl outform Ar DER | PEM 2535The output format.
2528This specifies the output format; the options have the same meaning as the
2529.Fl inform
2530option.
2531.It Fl print_certs 2536.It Fl print_certs
2532Prints out any certificates or CRLs contained in the file. 2537Print any certificates or CRLs contained in the file,
2533They are preceded by their subject and issuer names in a one-line format. 2538preceded by their subject and issuer names in a one-line format.
2534.It Fl text 2539.It Fl text
2535Prints out certificate details in full rather than just subject and 2540Print certificate details in full rather than just subject and issuer names.
2536issuer names.
2537.El 2541.El
2538.Sh PKCS7 EXAMPLES
2539Convert a PKCS#7 file from PEM to DER:
2540.Pp
2541.Dl $ openssl pkcs7 -in file.pem -outform DER -out file.der
2542.Pp
2543Output all certificates in a file:
2544.Pp
2545.Dl $ openssl pkcs7 -in file.pem -print_certs -out certs.pem
2546.Sh PKCS7 NOTES
2547The PEM PKCS#7 format uses the header and footer lines:
2548.Bd -unfilled -offset indent
2549-----BEGIN PKCS7-----
2550-----END PKCS7-----
2551.Ed
2552.Pp
2553For compatibility with some CAs it will also accept:
2554.Bd -unfilled -offset indent
2555-----BEGIN CERTIFICATE-----
2556-----END CERTIFICATE-----
2557.Ed
2558.Sh PKCS7 RESTRICTIONS
2559There is no option to print out all the fields of a PKCS#7 file.
2560.Pp
2561The PKCS#7 routines only understand PKCS#7 v 1.5 as specified in RFC 2315.
2562They cannot currently parse, for example, the new CMS as described in RFC 2630.
2563.\" 2542.\"
2564.\" PKCS8 2543.\" PKCS8
2565.\" 2544.\"