[sr-dev] [kamailio/kamailio] TLS module: access UID attribute (#1843)

Sebastian Denz notifications at github.com
Mon Feb 11 09:40:55 CET 2019


@henningw and @oej

Thank you so much for your awesome support!

unfortunately the patch doesnt help yet..

```
xlog("L_INFO", "MY_LOG HANDLE_TLS tls_peer_subject:                  $tls_peer_subject\n");
xlog("L_INFO", "MY_LOG HANDLE_TLS tls_peer_subject_uid:              $tls_peer_subject_uid\n");
xlog("L_INFO", "MY_LOG HANDLE_TLS sel(tls.peer.subject.uid):         $sel(tls.peer.subject.uid)\n");
xlog("L_INFO", "MY_LOG HANDLE_TLS sel(tls.peer.subject):             $sel(tls.peer.subject)\n");
xlog("L_INFO", "MY_LOG HANDLE_TLS sel(tls.peer.subject.name):        $sel(tls.peer.subject.name)\n");
xlog("L_INFO", "MY_LOG HANDLE_TLS sel(tls.peer.subject.common_name): $sel(tls.peer.subject.common_name)\n");
xlog("L_INFO", "MY_LOG HANDLE_TLS sel(tls.peer.name):                $sel(tls.peer.subject.name)\n");
```

logs:

```
12(24697) INFO: <script>: MY_LOG HANDLE_TLS tls_peer_subject:                  <null>
12(24697) INFO: <script>: MY_LOG HANDLE_TLS tls_peer_subject_uid:         	 <null>
12(24697) INFO: <script>: MY_LOG HANDLE_TLS sel(tls.peer.subject.uid):         <null>
12(24697) INFO: <script>: MY_LOG HANDLE_TLS sel(tls.peer.subject):             Sebastian Denz
12(24697) INFO: <script>: MY_LOG HANDLE_TLS sel(tls.peer.subject.name):        Sebastian Denz
12(24697) INFO: <script>: MY_LOG HANDLE_TLS sel(tls.peer.subject.common_name): Sebastian Denz
12(24697) INFO: <script>: MY_LOG HANDLE_TLS sel(tls.peer.name):                Sebastian Denz
```

Regarding to wireshark the uid is send like this:
RelativeDistinguishedName item (itu-t.9.2342.19200300.100.1.1=denzs)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1843#issuecomment-462251509
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20190211/3fd1ed7a/attachment.html>


More information about the sr-dev mailing list