| 1 |
Keys |beta| |
| 2 |
=========== |
| 3 |
|
| 4 |
*General parameters* » *Keys* |
| 5 |
|
| 6 |
.. versionadded:: 2.22.0 |
| 7 |
|
| 8 |
This section allows you to define cryptographic key pairs (*public* and *private* keys) that can be used by LemonLDAP::NG features such as |
| 9 |
:doc:`idpsaml`, :doc:`idpopenidconnect` and :doc:`idpjitsimeettokens`. |
| 10 |
|
| 11 |
Key material |
| 12 |
------------ |
| 13 |
|
| 14 |
- **Private key**: The PEM-encoded private key. It can be optionally encrypted using PKCS#8 |
| 15 |
- **Private key password**: Password for PKCS#8 encrypted keys |
| 16 |
- **Public key**: Can either be a PEM-encoded public key or a PEM-encoded certificate. |
| 17 |
Certificates are usually more compatible with client applications, so it is |
| 18 |
recommended to input a full X.509 certificate here. |
| 19 |
|
| 20 |
|
| 21 |
Options |
| 22 |
------- |
| 23 |
|
| 24 |
- **External key identifier**: Some protocols, such as OpenID Connect, associate |
| 25 |
an identifier (``kid``) with the key. By default, LemonDLAP::NG will use the |
| 26 |
name you gave while creating the key. Use this option to use a different name |
| 27 |
instead. |
| 28 |
- **Comment**: set a comment to describe this key to your future self or fellow admins |
| 29 |
|
| 30 |
Exposing keys to applications |
| 31 |
----------------------------- |
| 32 |
|
| 33 |
LemonLDAP::NG uses *SAML Metadata* or *OpenID Connect JWKS* to expose its |
| 34 |
public keys to applications without having to manually configure the |
| 35 |
application. |
| 36 |
|
| 37 |
By default, the keys you manually add are not exposed. There are two ways to |
| 38 |
expose them: |
| 39 |
|
| 40 |
* Use a per-application metadata URL, such as: |
| 41 |
|
| 42 |
* `/saml/metadata/idp?sp=<entityid>` |
| 43 |
* `/oauth2/jwks?client_id=<clientid>` |
| 44 |
|
| 45 |
* Or set multiple values in each protocol's *Signing key name* option. The |
| 46 |
first value will by used to sign protocol responses when no explicit key is |
| 47 |
defined at the SP/RP level, and all other values will be exposed in global |
| 48 |
metadata. |
| 49 |
|
| 50 |
|
| 51 |
Using placeholders |
| 52 |
------------------ |
| 53 |
|
| 54 |
You can use :ref:`configuration placeholders <configuration-placeholders>` as |
| 55 |
the value of any field in this section, which is a convenient way to store |
| 56 |
private keys externally. |
| 57 |
|
| 58 |
|
| 59 |
.. |beta| image:: /documentation/beta.png |
| 60 |
:width: 35px |
| 61 |
:alt: beta |