# client authintication - LTM

**URL:** <https://community.f5.com/t/client-authintication-ltm/58718>\
**Category:** Technical Forums\
**Tags:** asm-advanced-waf, devops, ltm, application-delivery\
**Created:** [November 1, 2021, 4:37pm UTC](https://community.f5.com/t/client-authintication-ltm/58718 "2021-11-01T16:37:30Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![THE\_BLUE](https://avatars.discourse-cdn.com/v4/letter/t/a88e57/32.png) [@THE\_BLUE](https://community.f5.com/u/THE_BLUE)\
**Post date:** [November 1, 2021, 4:37pm UTC](https://community.f5.com/t/client-authintication-ltm/58718/1 "2021-11-01T16:37:30Z")

</div>

i’m trying to apply client authentication using certificate where the certificate is required otherwise you can’t view the link . the public certificate is installed from client side and the private one configured in WAF . I’m using below irule to achieve that :

when HTTP\_REQUEST {

if {[HTTP::uri] starts\_with “/mylink/” } {

if {[SSL::cert count] \<= 0 } {

HTTP::collect

SSL::authenticate always

SSL::authenticate depth 9

SSL::cert mode require

SSL::renegotiate

}

}

}

but I got SSL handshake error as warning in WAF , so is there any error in above rule? or it required another setup in SSL profile ? note that i have different Urls which require different certificate but all of them under /mylink/ , for certificates i have one profile contain all the required certificates.

---

<div class="post-metadata">

**Author:** ![xuwen](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/xuwen/32/13933_2.png) [@xuwen](https://community.f5.com/u/xuwen)\
**Post date:** [November 2, 2021, 2:17am UTC](https://community.f5.com/t/client-authintication-ltm/58718/2 "2021-11-02T02:17:45Z")

</div>

when your irules work (LTM initiate SSL HelloRequest require client initiate new SSL connection to LTM), client attempt SSL::renegotiate(client bring its clientcert) to LTM, you should HTTP::release clientside HTTP traffic&nbsp;：

when CLIENTSSL\_HANDSHAKE {

if { [SSL::cert count] \> 0 } {

**HTTP::release**

}

}

​

when HTTP\_REQUEST {

if {[HTTP::uri] starts\_with “/mylink/” } {

if {[SSL::cert count] == 0} {

HTTP::collect

SSL::session invalidate

SSL::authenticate always

SSL::authenticate depth 9

SSL::cert mode require

SSL::renegotiate enable

SSL::renegotiate

}

}

}

---

<div class="post-metadata">

**Author:** ![THE\_BLUE](https://avatars.discourse-cdn.com/v4/letter/t/a88e57/32.png) [@THE\_BLUE](https://community.f5.com/u/THE_BLUE)\
**Post date:** [November 3, 2021, 7:25am UTC](https://community.f5.com/t/client-authintication-ltm/58718/3 "2021-11-03T07:25:32Z")

</div>

Dear [xuwen](https://devcentral.f5.com/s/profile/0051T0000098Ed3QAE),

thank you very much.

is there any change i have to do on SSL profile?

---

<div class="post-metadata">

**Author:** ![spalande](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/spalande/32/10043_2.png) [@spalande](https://community.f5.com/u/spalande)\
**Post date:** [November 3, 2021, 2:32pm UTC](https://community.f5.com/t/client-authintication-ltm/58718/4 "2021-11-03T14:32:23Z")

</div>

In clientssl profile, **renegotiation** should be enabled. Also, in client authentication part under **Trusted Certificate Authorities** select intermediate/issuer certificate of client certificate.

You can also modify the iRule if requirement is to parse client cert subjectDN and allow access to it or add it as header to send it to pool member for authorization.

---

<div class="post-metadata">

**Author:** ![THE\_BLUE](https://avatars.discourse-cdn.com/v4/letter/t/a88e57/32.png) [@THE\_BLUE](https://community.f5.com/u/THE_BLUE)\
**Post date:** [November 4, 2021, 7:06pm UTC](https://community.f5.com/t/client-authintication-ltm/58718/5 "2021-11-04T19:06:52Z")

</div>

Renegotiation is enabled and i have test the connection using soapUI but I got an error " javax.net.ssl.SSLException: Connection reset

is there another option to test?

---

<div class="post-metadata">

**Author:** ![spalande](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/spalande/32/10043_2.png) [@spalande](https://community.f5.com/u/spalande)\
**Post date:** [November 5, 2021, 8:59am UTC](https://community.f5.com/t/client-authintication-ltm/58718/6 "2021-11-05T08:59:06Z")

</div>

Does SOAP UI have required client certificate for testing? Capture tcpdump/ssldump to analyse where it’s breaking.

---

<div class="post-metadata">

**Author:** ![THE\_BLUE](https://avatars.discourse-cdn.com/v4/letter/t/a88e57/32.png) [@THE\_BLUE](https://community.f5.com/u/THE_BLUE)\
**Post date:** [November 5, 2021, 11:55am UTC](https://community.f5.com/t/client-authintication-ltm/58718/7 "2021-11-05T11:55:18Z")

</div>

yes, the idea is i have api link which required client authentication. in soap ui i have attached the certificate and request the api but there is no response and i got the above error.

---

<div class="post-metadata">

**Author:** ![boneyard](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/boneyard/32/20419_2.png) [@boneyard](https://community.f5.com/u/boneyard)\
**Post date:** [November 7, 2021, 3:35pm UTC](https://community.f5.com/t/client-authintication-ltm/58718/8 "2021-11-07T15:35:57Z")

</div>

have you confirmed with a tcpdump the server requests the cert and client cert is send as expected?

you can also try with another client like curl or such to test.
