Fix parsing of serial# in req
authorRich Salz <rsalz@openssl.org>
Sun, 5 Feb 2017 15:24:54 +0000 (10:24 -0500)
committerRich Salz <rsalz@openssl.org>
Mon, 6 Feb 2017 14:48:21 +0000 (09:48 -0500)
Reported by Jakub Wilk.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2556)

apps/req.c
doc/man1/req.pod

index c4fc931a8e799d23134d96298f791a0e7ade18ae..00f2a413b637adff1e84213ede07fc4833b49303 100644 (file)
@@ -121,7 +121,7 @@ const OPTIONS req_options[] = {
     {"multivalue-rdn", OPT_MULTIVALUE_RDN, '-',
      "Enable support for multivalued RDNs"},
     {"days", OPT_DAYS, 'p', "Number of days cert is valid for"},
     {"multivalue-rdn", OPT_MULTIVALUE_RDN, '-',
      "Enable support for multivalued RDNs"},
     {"days", OPT_DAYS, 'p', "Number of days cert is valid for"},
-    {"set_serial", OPT_SET_SERIAL, 'p', "Serial number to use"},
+    {"set_serial", OPT_SET_SERIAL, 's', "Serial number to use"},
     {"extensions", OPT_EXTENSIONS, 's',
      "Cert extension section (override value in config file)"},
     {"reqexts", OPT_REQEXTS, 's',
     {"extensions", OPT_EXTENSIONS, 's',
      "Cert extension section (override value in config file)"},
     {"reqexts", OPT_REQEXTS, 's',
index 8362f53d8c575407fd3f6301c830cebe9075af09..8ba04aedba9b3ee8d0e4c88105aa4c144b166663 100644 (file)
@@ -242,7 +242,6 @@ days to certify the certificate for. The default is 30 days.
 
 serial number to use when outputting a self signed certificate. This
 may be specified as a decimal value or a hex value if preceded by B<0x>.
 
 serial number to use when outputting a self signed certificate. This
 may be specified as a decimal value or a hex value if preceded by B<0x>.
-It is possible to use negative serial numbers but this is not recommended.
 
 =item B<-extensions section>
 
 
 =item B<-extensions section>