Apache HTTP Server Version 2.5
Available Languages: en
ctlogconfig
is a tool for creating and maintaining a log
configuration database, for use with mod_ssl_ct
.
Refer first to Log
configuration in the mod_ssl_ct
documentation.
Refer to the examples below for typical use.
ctlogconfig /path/to/db dump
ctlogconfig /path/to/db configure-public-key
[ log-id|record-id ]
/path/to/public-key.pem
ctlogconfig /path/to/db configure-url
[ log-id|record-id ]
log-URL
ctlogconfig /path/to/db valid-time-range
log-id|record-id
min-timestamp max-timestamp
ctlogconfig /path/to/db trust
log-id|record-id
ctlogconfig /path/to/db distrust
log-id|record-id
ctlogconfig /path/to/db forget
log-id|record-id
-
for one of the timestamps if it is unknown.
For example, when configuring the minimum valid timestamp for a log which remains
valid, specify -
for max-timestamp.
-
for a time that is not being configured.
(The database will be created if it does not yet exist.)Consider an Apache httpd instance which serves as a TLS server and a proxy. The TLS server needs to obtain SCTs from a couple of known logs in order to pass those to clients, and the proxy needs to be able to validate the signature of SCTs received from backend servers.
First we'll configure the URLs for logs where server certificates are logged:
$ ctlogconfig /path/to/conf/log-config configure-url http://log1.example.com/
$ ctlogconfig /path/to/conf/log-config configure-url http://log2.example.com/
$ ctlogconfig /path/to/conf/log-config dump
Log entry:
Record 1
Log id : (not configured)
Public key file: (not configured)
URL : http://log1.example.com/
Time range : -INF to +INF
Log entry:
Record 2
Log id : (not configured)
Public key file: (not configured)
URL : http://log2.example.com/
Time range : -INF to +INF
Next we'll set the public key of a log where the certificate of our only backend server is published. In this case it is the log with URL http://log2.example.com/ which has already been configured.
$ ctlogconfig /path/to/conf/log-config configure-public-key \#2 /path/to/conf/log2-pub.pem
$ ctlogconfig /path/to/conf/log-config dump
Log entry:
Record 1
Log id : (not configured)
Public key file: (not configured)
URL : http://log1.example.com/
Time range : -INF to +INF
Log entry:
Record 2
Log id : (not configured)
Public key file: /path/to/conf/log2-pub.pem
URL : http://log2.example.com/
Time range : -INF to +INF
Available Languages: en