Add ssl/client/i/dn resource. Closes #113

This commit is contained in:
Héctor Hurtado
2020-09-10 16:35:41 +02:00
parent 6d24cc4d2d
commit a17cc4838d
5 changed files with 191 additions and 2 deletions
+26
View File
@@ -43,6 +43,10 @@ Overview
│ │ └──── content The contents of the file uploaded in the form field <name>
│ └──── body HTTP request body
|─ ssl
│ └──── client
│ └──── i
│ └──── dn Subject's DN common name coming ina request through SSL with mTLS
│─ route
│ └──── id Id of the route that matched this request.
@@ -383,6 +387,28 @@ then, when handling the request:
foobar
``/ssl/client/i/dn`` Resource
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The IP address of the host making the incoming request.
Sample Usage
^^^^^^^^^^^^
If the user runs:
.. code-block:: console
$ curl --cacert path/to/CAfile --cert path/to/clientcredentials http://kapow.example:8080
using a client certificate with DN=subject@example.net then, when handling the request:
.. code-block:: console
$ kapow get /ssl/client/i/dn
subject@example.net
``/route/id`` Resource
~~~~~~~~~~~~~~~~~~~~~~~~~~