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
.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
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
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
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
.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
\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>
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"
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;