Skip to content

Commit

Permalink
openssl-x509.pod.in: fix description of certificate serial number sto…
Browse files Browse the repository at this point in the history
…rage

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from #18373)

(cherry picked from commit aa73b7d)
  • Loading branch information
DDvO authored and hlandau committed Jul 14, 2022
1 parent b74fc77 commit 8ff32e3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions doc/man1/openssl-x509.pod.in
Original file line number Diff line number Diff line change
Expand Up @@ -496,18 +496,18 @@ See L<openssl-format-options(1)> for details.

Sets the CA serial number file to use.

When the B<-CA> option is used to sign a certificate it uses a serial
number specified in a file. This file consists of one line containing
an even number of hex digits with the serial number to use. After each
use the serial number is incremented and written out to the file again.
When creating a certificate with this option, the certificate serial number
is stored in the given file. This file consists of one line containing
an even number of hex digits with the serial number used last time.
After reading this number, it is incremented and used, and the file is updated.

The default filename consists of the CA certificate file base name with
F<.srl> appended. For example if the CA certificate file is called
F<mycacert.pem> it expects to find a serial number file called
F<mycacert.srl>.

If the B<-CA> option is specified and both the <-CAserial> and <-CAcreateserial>
options are not given and the default serial number file does not exist,
If the B<-CA> option is specified and neither <-CAserial> or <-CAcreateserial>
is given and the default serial number file does not exist,
a random number is generated; this is the recommended practice.

=item B<-CAcreateserial>
Expand Down

0 comments on commit 8ff32e3

Please sign in to comment.