Latest update.
This commit is contained in:
+19
-17
@@ -3,7 +3,7 @@
|
||||
|
||||
=head1 NAME
|
||||
|
||||
openssl-req - PKCS#10 certificate request and certificate generating utility
|
||||
openssl-req - PKCS#10 certificate request and certificate generating command
|
||||
|
||||
=head1 SYNOPSIS
|
||||
|
||||
@@ -45,16 +45,15 @@ B<openssl> B<req>
|
||||
[B<-subject>]
|
||||
[B<-subj> I<arg>]
|
||||
[B<-sigopt> I<nm>:I<v>]
|
||||
[B<-vfyopt> I<nm>:I<v>]
|
||||
[B<-batch>]
|
||||
[B<-verbose>]
|
||||
[B<-sm2-id> I<string>]
|
||||
[B<-sm2-hex-id> I<hex-string>]
|
||||
{- $OpenSSL::safe::opt_name_synopsis -}
|
||||
{- $OpenSSL::safe::opt_r_synopsis -}
|
||||
{- $OpenSSL::safe::opt_engine_synopsis -}
|
||||
{- $OpenSSL::safe::opt_provider_synopsis -}
|
||||
|
||||
=for openssl ifdef engine keygen_engine sm2-id sm2-hex-id
|
||||
=for openssl ifdef engine keygen_engine
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
@@ -85,9 +84,22 @@ options (B<-new> and B<-newkey>) are not specified.
|
||||
|
||||
=item B<-sigopt> I<nm>:I<v>
|
||||
|
||||
Pass options to the signature algorithm during sign or verify operations.
|
||||
Pass options to the signature algorithm during sign operations.
|
||||
Names and values of these options are algorithm-specific.
|
||||
|
||||
=item B<-vfyopt> I<nm>:I<v>
|
||||
|
||||
Pass options to the signature algorithm during verify operations.
|
||||
Names and values of these options are algorithm-specific.
|
||||
|
||||
=begin comment
|
||||
|
||||
Maybe it would be preferable to only have -opts instead of -sigopt and
|
||||
-vfyopt? They are both present here to be compatible with L<openssl-ca(1)>,
|
||||
which supports both options for good reasons.
|
||||
|
||||
=end comment
|
||||
|
||||
=item B<-passin> I<arg>, B<-passout> I<arg>
|
||||
|
||||
The password source for the input and output file.
|
||||
@@ -313,16 +325,6 @@ Print extra details about the operations being performed.
|
||||
Specifies an engine (by its unique I<id> string) which would be used
|
||||
for key generation operations.
|
||||
|
||||
=item B<-sm2-id>
|
||||
|
||||
Specify the ID string to use when verifying an SM2 certificate request. The ID
|
||||
string is required by the SM2 signature algorithm for signing and verification.
|
||||
|
||||
=item B<-sm2-hex-id>
|
||||
|
||||
Specify a binary ID string to use when verifying an SM2 certificate request. The
|
||||
argument for this option is string of hexadecimal digits.
|
||||
|
||||
{- $OpenSSL::safe::opt_name_item -}
|
||||
|
||||
{- $OpenSSL::safe::opt_r_item -}
|
||||
@@ -531,11 +533,11 @@ Generate a self signed root certificate:
|
||||
Create an SM2 private key and then generate a certificate request from it:
|
||||
|
||||
openssl ecparam -genkey -name SM2 -out sm2.key
|
||||
openssl req -new -key sm2.key -out sm2.csr -sm3 -sigopt "sm2_id:1234567812345678"
|
||||
openssl req -new -key sm2.key -out sm2.csr -sm3 -sigopt "distid:1234567812345678"
|
||||
|
||||
Examine and verify an SM2 certificate request:
|
||||
|
||||
openssl req -verify -in sm2.csr -sm3 -sm2-id 1234567812345678
|
||||
openssl req -verify -in sm2.csr -sm3 -vfyopt "distid:1234567812345678"
|
||||
|
||||
Example of a file pointed to by the B<oid_file> option:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user