提交 35eb4588 编写于 作者: P Pauli

pkey: update command line tool examples in light of deprecations.

Specifically, refer from the deprecated tools to the pkey equivalents.
Reviewed-by: NDmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/11113)
上级 e1dcac22
......@@ -127,6 +127,9 @@ a public key.
=head1 EXAMPLES
Examples equivalent to these can be found in the documentation for the
non-deprecated L<openssl-pkey(1)> command.
To remove the pass phrase on a DSA private key:
openssl dsa -in key.pem -out keyout.pem
......
......@@ -145,6 +145,9 @@ This option checks the consistency of an EC private or public key.
=head1 EXAMPLES
Examples equivalent to these can be found in the documentation for the
non-deprecated L<openssl-pkey(1)> command.
To encrypt a private key using triple DES:
openssl ec -in key.pem -des3 -out keyout.pem
......
......@@ -134,6 +134,9 @@ This option will generate an EC private key using the specified parameters.
=head1 EXAMPLES
Examples equivalent to these can be found in the documentation for the
non-deprecated L<openssl-genpkey(1)> and L<openssl-pkeyparam(1)> commands.
To create EC parameters with the group 'prime192v1':
openssl ecparam -out ec_param.pem -name prime192v1
......
......@@ -120,7 +120,7 @@ of a key pair.
=head1 EXAMPLES
To remove the pass phrase on an RSA private key:
To remove the pass phrase on a private key:
openssl pkey -in key.pem -out keyout.pem
......
......@@ -140,6 +140,9 @@ Like B<-pubin> and B<-pubout> except B<RSAPublicKey> format is used instead.
=head1 EXAMPLES
Examples equivalent to these can be found in the documentation for the
non-deprecated L<openssl-pkey(1)> command.
To remove the pass phrase on an RSA private key:
openssl rsa -in key.pem -out keyout.pem
......
......@@ -135,6 +135,9 @@ used to sign or verify small pieces of data.
=head1 EXAMPLES
Examples equivalent to these can be found in the documentation for the
non-deprecated L<openssl-pkeyutl(1)> command.
Sign some data using a private key:
openssl rsautl -sign -in file -inkey key.pem -out sig
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册