| 1 |
.TH P11KMIP.CONF 5 "August 2023" "@PACKAGE_VERSION@" "openCryptoki" |
| 2 |
.SH NAME |
| 3 |
p11kmip.conf \- Configuration file for the \fBp11kmip\fP |
| 4 |
command. |
| 5 |
. |
| 6 |
. |
| 7 |
. |
| 8 |
.SH DESCRIPTION |
| 9 |
The |
| 10 |
.B p11kmip |
| 11 |
tool uses the configuration file \fB/etc/opencryptoki/p11kmip.conf\fP to read information about |
| 12 |
how to connect to a KMIP server and interact with a PKCS\~#11 token repository. |
| 13 |
.PP |
| 14 |
A custom file path can be set with environment variable |
| 15 |
\fBP11KMIP_DEFAULT_CONF_FILE\fP. If the environment variable is not set, then |
| 16 |
the global \fB/etc/opencryptoki/p11kmip.conf\fP config file is read. |
| 17 |
If this file is unavailable, an error message is displayed. |
| 18 |
. |
| 19 |
. |
| 20 |
. |
| 21 |
.SH SYNTAX |
| 22 |
. |
| 23 |
.P |
| 24 |
There are two sections in the configuration. Both consist of a title, brackets, |
| 25 |
and a set of key\-value pairs. |
| 26 |
|
| 27 |
The first section configures the connection to the KMIP server. It contains |
| 28 |
the following keywords: \fBhost\fR, \fBtls_client_cert\fR, \fBtls_client_key\fR, |
| 29 |
\fBwrap_key_format\fR, \fBwrap_key_algorithm\fR, \fBwrap_key_size\fR, |
| 30 |
\fBwrap_padding_method\fR, \fBwrap_hashing_algorithm\fR. |
| 31 |
|
| 32 |
.PP |
| 33 |
Example: |
| 34 |
|
| 35 |
kmip { |
| 36 |
host = "0.0.0.0:5696" |
| 37 |
tls_client_cert = "/tmp/certs/client_certificate_jane_doe.pem" |
| 38 |
tls_client_key = "/tmp/certs/client_key_jane_doe.pem" |
| 39 |
|
| 40 |
wrap_key_format = "PKCS1" |
| 41 |
wrap_key_algorithm = "RSA" |
| 42 |
wrap_key_size = 2048 |
| 43 |
wrap_padding_method = "PKCS1.5" |
| 44 |
wrap_hashing_algorithm = "SHA-1" |
| 45 |
} |
| 46 |
|
| 47 |
|
| 48 |
The |
| 49 |
.B host |
| 50 |
attribute must be specified in the format "hostname[:port]" when using plain TLS, where |
| 51 |
"hostname" may be an IPv4 address, IPv6 address, or a symbolical hostname, and |
| 52 |
"port" may optionally be used to specify a non-standard port number. If |
| 53 |
"port" is not specified, 5696 is used as the default. |
| 54 |
|
| 55 |
The |
| 56 |
.B tls_client_cert |
| 57 |
attribute must specify the path to a PEM format file containing the client certificate |
| 58 |
used for TLS authentication to the KMIP server. |
| 59 |
|
| 60 |
The |
| 61 |
.B tls_client_key |
| 62 |
attribute must specify the path to a PEM format file containing the client private key |
| 63 |
used for TLS authentication to the KMIP server. |
| 64 |
|
| 65 |
The |
| 66 |
.B wrap_key_format |
| 67 |
attribute specifies the format used to transmit the wrapping key, and must be one of "PKCS1", |
| 68 |
"PKCS8", or "TransparentPublicKey". |
| 69 |
|
| 70 |
The |
| 71 |
.B wrap_key_algorithm |
| 72 |
attribute specifies the algorithm used for key wrapping. Currently only "RSA" is supported. |
| 73 |
|
| 74 |
The |
| 75 |
.B wrap_key_size |
| 76 |
attribute specifies the length of the key used for wrapping. This value must match the length of |
| 77 |
the actual wrapping and unwrapping key which are provided when the tool is invoked. |
| 78 |
|
| 79 |
The |
| 80 |
.B wrap_padding_method |
| 81 |
attribute specifies padding method used during the key wrap. Currently padding methods |
| 82 |
"PKCS1.5" and "OAEP" are supported. |
| 83 |
|
| 84 |
The |
| 85 |
.B wrap_hashing_algorithm |
| 86 |
specifies the hashing algorithm used by the padding method. Only the "OAEP" padding |
| 87 |
method requires a hashing algorithm to be specified. For the "OAEP" padding method, only the "SHA-1" and "SHA-256" hashing algorithms |
| 88 |
are supported. For all other padding methods this field is ignored, and may be absent. |
| 89 |
|
| 90 |
The second section configures interaction with the PKCS\~#11 token repository. It contains |
| 91 |
the following keyword: |
| 92 |
.B slot . |
| 93 |
|
| 94 |
.PP |
| 95 |
Example: |
| 96 |
pkcs11 { |
| 97 |
slot = 0 |
| 98 |
} |
| 99 |
|
| 100 |
The |
| 101 |
.B slot |
| 102 |
attribute must be an integer specifying the slot number to use. |
| 103 |
|
| 104 |
Of these attributes, the |
| 105 |
.B host |
| 106 |
, |
| 107 |
.B tls_client_cert |
| 108 |
, |
| 109 |
.B tls_client_key |
| 110 |
attributes of the |
| 111 |
.B kmip |
| 112 |
section and the |
| 113 |
.B slot |
| 114 |
attribute of the |
| 115 |
.B pkcs11 |
| 116 |
section may be absent from the file if specified by an environment variable or command option. |
| 117 |
|
| 118 |
The remaining attributes will be treated as the the default values shown in this example when they are |
| 119 |
absent. The configuration file need not be present if all required attributes are specified by other means. |
| 120 |
Attributes and groups may be specified in any order within the configuration file. |
| 121 |
|
| 122 |
.PP |
| 123 |
|
| 124 |
.SH Notes |
| 125 |
The pound sign ('#') is used to indicate a comment up to and including the end |
| 126 |
of line. |
| 127 |
|
| 128 |
.SH "SEE ALSO" |
| 129 |
.PD 0 |
| 130 |
.TP |
| 131 |
\fBp11kmip\fP(1) |
| 132 |
.PD |