]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 4715: security_file_certgen: Remove -g and -n options docs (#110)
authorAmos Jeffries <yadij@users.noreply.github.com>
Fri, 22 Dec 2017 03:14:59 +0000 (16:14 +1300)
committerGitHub <noreply@github.com>
Fri, 22 Dec 2017 03:14:59 +0000 (16:14 +1300)
src/security/cert_generators/file/security_file_certgen.8.in
src/security/cert_generators/file/security_file_certgen.cc

index f59daa6795f6858aefa68ba51273704d84884fbf..f4ce28e5dafec7c798cf912d66a7640cafd7d85e 100644 (file)
@@ -14,18 +14,13 @@ Version 1.0
 directory
 .if !'po4a'hide' .B "[\-M "
 size
+.if !'po4a'hide' .B "] [\-b "
+fs_block_size
 .if !'po4a'hide' .B ]
 .br
 .if !'po4a'hide' .B security_file_certgen
 .if !'po4a'hide' .B "[\-d] \-c \-s "
 directory
-.if !'po4a'hide' .B "[\-n "
-serial number
-.if !'po4a'hide' .B ]
-.br
-.if !'po4a'hide' .B security_file_certgen
-.if !'po4a'hide' .B "[\-d] \-g \-s "
-directory
 .
 .SH DESCRIPTION
 .B security_file_certgen
@@ -42,13 +37,13 @@ Communication occurs via TCP sockets bound to the loopback interface.
 .if !'po4a'hide' .TP 12
 .if !'po4a'hide' .B \-b fs_block_size
 File system block size in bytes. Needed for processing natural size of certificate on disk.
-Default value is 2048 bytes.
+Default value is 2048 bytes. The following suffixes are accepted: B, KB, MB, GB.
+When no suffix is set, B is assumed.
 .
 .if !'po4a'hide' .TP
 .if !'po4a'hide' .B \-c
-Initialize the SSL storage database and exit.
-Requires the 
-.B -s 
+Initialize the SSL storage database and exit. Requires the
+.B \-s
 option to determine the storage location being created.
 .
 .if !'po4a'hide' .TP
@@ -56,30 +51,18 @@ option to determine the storage location being created.
 Write debug info to stderr.
 .
 .if !'po4a'hide' .TP
-.if !'po4a'hide' .B \-g
-Display the current serial number using stderr and exit.
-Requires 
-.B \-s 
-option to determine which storage directory the serial is located in.
-.
-.if !'po4a'hide' .TP
 .if !'po4a'hide' .B \-h
 Display the binary help and command line syntax info using stderr.
 .
 .if !'po4a'hide' .TP
 .if !'po4a'hide' .B \-s directory
-Directory path of disk storage for new SSL certificates.
+Directory path of SSL storage database.
 .
 .if !'po4a'hide' .TP
 .if !'po4a'hide' .B \-M size
-Maximum size of SSL certificate disk storage.
-.
-.if !'po4a'hide' .TP
-.if !'po4a'hide' .B \-n serial number
-HEX 
-.B "serial number "
-to use when initializing an SSL storage database.
-The default value of serial number is the number of seconds since Epoch minus 1200000000.
+Maximum size of SSL certificate disk storage. Same suffixes supported by the
+.B \-b
+option can be used.
 .
 .if !'po4a'hide' .TP
 .if !'po4a'hide' .B \-v
@@ -109,12 +92,12 @@ root and the intermediate public CA on the clients.
 Before this helper can be used the storage area for new certificates must be initialized manually.
 This is done from the command line using the 
 .B \-c 
-parameters.
+parameter.
 .
 .PP
 For example:
 .if !'po4a'hide' .RS
-.if !'po4a'hide' .B @DEFAULT_SSL_CRTD@ -c -s @DEFAULT_SSL_DB_DIR@
+.if !'po4a'hide' .B @DEFAULT_SSL_CRTD@ \-c \-s @DEFAULT_SSL_DB_DIR@
 .if !'po4a'hide' .RE
 .
 .PP
@@ -135,7 +118,7 @@ For more customized configuration the helper certificate storage directory locat
 configuration directive.
 For example:
 .if !'po4a'hide' .RS
-.if !'po4a'hide' .B sslcrtd_program @DEFAULT_SSL_CRTD@ -s @DEFAULT_SSL_DB_DIR@ -M 4MB
+.if !'po4a'hide' .B sslcrtd_program @DEFAULT_SSL_CRTD@ \-s @DEFAULT_SSL_DB_DIR@ \-M 4MB
 .if !'po4a'hide' .br
 .if !'po4a'hide' .B sslcrtd_children 5
 .if !'po4a'hide' .RE
@@ -146,6 +129,7 @@ This program was written by
 .PP
 This manual was written by
 .if !'po4a'hide' .I Christos Tsantilas <christos@chtsanti.net>
+and
 .if !'po4a'hide' .I Amos Jeffries <amosjeffries@squid-cache.org>
 .
 .SH COPYRIGHT
index 7f31009ac474c992794d0d4483daddf38da9908c..ae0f5243f438443393f54412f9161cd5c9b93b9c 100644 (file)
 
  \section ssl_crtdInterface Command Line Interface
  \verbatim
-usage: security_file_certgen -hv -s ssl_storage_path -M storage_max_size
+usage: security_file_certgen -hv -s directory -M size -b fs_block_size
     -h                   Help
     -v                   Version
-    -s ssl_storage_path  Path to specific disk storage of ssl server
-                         certificates.
-    -M storage_max_size  max size of ssl certificates storage.
+    -s directory         Directory path of SSL storage database.
+    -M size              Maximum size of SSL certificate disk storage.
     -b fs_block_size     File system block size in bytes. Need for processing
                          natural size of certificate on disk. Default value is
-                         2048 bytes."
+                         2048 bytes.
 
     After running write requests in the next format:
     <request code><whitespace><body_len><whitespace><body>
@@ -149,12 +148,11 @@ static void usage()
     std::stringstream request_string_size_stream;
     request_string_size_stream << request_string.length();
     std::string help_string =
-        "usage: security_file_certgen -hv -s ssl_storage_path -M storage_max_size\n"
+        "usage: security_file_certgen -hv -s directory -M size -b fs_block_size\n"
         "\t-h                   Help\n"
         "\t-v                   Version\n"
-        "\t-s ssl_storage_path  Path to specific disk storage of ssl server\n"
-        "\t                     certificates.\n"
-        "\t-M storage_max_size  max size of ssl certificates storage.\n"
+        "\t-s directory         Directory path of SSL storage database.\n"
+        "\t-M size              Maximum size of SSL certificate disk storage.\n"
         "\t-b fs_block_size     File system block size in bytes. Need for processing\n"
         "\t                     natural size of certificate on disk. Default value is\n"
         "\t                     2048 bytes.\n"
@@ -245,7 +243,7 @@ int main(int argc, char *argv[])
         bool create_new_db = false;
         std::string db_path;
         // process options.
-        while ((c = getopt(argc, argv, "dcghvs:M:b:n:")) != -1) {
+        while ((c = getopt(argc, argv, "dchvs:M:b:")) != -1) {
             switch (c) {
             case 'd':
                 debug_enabled = 1;