# Need value for session.ssl.cert.valid

**URL:** <https://community.f5.com/t/need-value-for-session-ssl-cert-valid/15349>\
**Category:** Technical Forums\
**Tags:** big-ip, big-ip-access-policy-manager-apm, security, certificates\
**Created:** [August 27, 2018, 7:03am UTC](https://community.f5.com/t/need-value-for-session-ssl-cert-valid/15349 "2018-08-27T07:03:09Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![LIH\_admin\_22571](https://avatars.discourse-cdn.com/v4/letter/l/e8c25b/32.png) [@LIH\_admin\_22571](https://community.f5.com/u/LIH_admin_22571)\
**Post date:** [August 27, 2018, 7:03am UTC](https://community.f5.com/t/need-value-for-session-ssl-cert-valid/15349/1 "2018-08-27T07:03:09Z")

</div>

Hello all,

Anyone capable of giving me the meaning of session.ssl.cert.valid with value 20 ?

I found some informations about this field, but not the possible values, that would help a lot

Regards,

---

<div class="post-metadata">

**Author:** ![youssef1](https://avatars.discourse-cdn.com/v4/letter/y/ed655f/32.png) [@youssef1](https://community.f5.com/u/youssef1)\
**Post date:** [August 27, 2018, 7:18am UTC](https://community.f5.com/t/need-value-for-session-ssl-cert-valid/15349/2 "2018-08-27T07:18:16Z")

</div>

Hello,

session.ssl.cert.valid to determine the success or failure of the authentication process.

Please use this irule to have the exact error then check (it will allow you to determine your problem)

[http://www.openssl.org/docs/apps/verify.htmlDIAGNOSTICS](http://www.openssl.org/docs/apps/verify.htmlDIAGNOSTICS))

```tcl
when HTTP_REQUEST {

if {[SSL::cert count] > 0}{
    if { [SSL::verify_result] == 0 }{
         valid cert
    } else {
         Use the SSL status code in the HTTP response (defined here: http://www.openssl.org/docs/apps/verify.htmlDIAGNOSTICS)

        set error_string [X509::verify_cert_error_string [SSL::verify_result]]
        log local0. "AUTH-CERT-NOK error_string = $error_string"
    }
}
}

```

---

<div class="post-metadata">

**Author:** ![Kevin\_Stewart](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/kevin_stewart/32/15267_2.png) [@Kevin\_Stewart](https://community.f5.com/u/Kevin_Stewart)\
**Post date:** [August 28, 2018, 9:59am UTC](https://community.f5.com/t/need-value-for-session-ssl-cert-valid/15349/3 "2018-08-28T09:59:56Z")

</div>

If I may clarify further, the trusted and advertised CA lists are different.

- Trusted Certificate Authorities is a CA certificate or CA bundle that allows the F5 to validate the client certificate. PKI (public key infrastructure) defines “chains”, where a self-signed “anchor” CA (root) issues a subordinate CA, which in turn may issue a “sub-subordinate” CA, which in turn may issue end entity certificates. In reality, the chain can be shorter

.

- Advertised Certificate Authorities is simply a bundle that “hints” to the client which issuers are acceptable when sending a client certificate. It plays no part in the actual validation of the client certificate. Simply put, if you possess client certificates from multiple issuers, this bundle tells the client which certificate(s) it can use. Browsers will do this automatically - listing only the certificates that match the advertised issuers. Technically, in the TLS handshake, when the server sends its Certificate Request message to the client, it also sends a list of acceptable CAs, which in this case comes from the Advertised Certificate Authorities bundle.

---

<div class="post-metadata">

**Author:** ![Kevin\_Stewart](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/kevin_stewart/32/15267_2.png) [@Kevin\_Stewart](https://community.f5.com/u/Kevin_Stewart)\
**Post date:** [August 28, 2018, 11:31am UTC](https://community.f5.com/t/need-value-for-session-ssl-cert-valid/15349/4 "2018-08-28T11:31:45Z")

</div>

You may also want to try an SSLDUMP on the client side to see if there are any obvious issues. You can post the results here if you want.

```tcl
ssldump -AdNn -i [inbound vlan] port 443 [and any additional filters]

```

SSLDUMP on the F5 requires at least one filter option (ex. “port 443”).

---

<div class="post-metadata">

**Author:** ![Kevin\_Stewart](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/kevin_stewart/32/15267_2.png) [@Kevin\_Stewart](https://community.f5.com/u/Kevin_Stewart)\
**Post date:** [September 2, 2018, 11:02pm UTC](https://community.f5.com/t/need-value-for-session-ssl-cert-valid/15349/5 "2018-09-02T23:02:26Z")

</div>

Okay, so just to be clear, you previously said,

RCA1 (called RCA1-CA) certificate issuer is self (since it is the root)

SCA1 (called xxx-SCA1-CA) issuer is RCA1-CA

And you had RCA1 as the trusted certificate authority and SCA1 as the advertised certificate authority. This is incorrect. You need **BOTH** certificates in a single bundle file and applied to the trusted certificate authorities selection. A bundle is a single text file that contains the PEM versions of multiple certificates. Example:

```tcl
-----BEGIN CERTIFICATE-----

-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----

-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----

-----END CERTIFICATE-----

```

So in your case, you’d need to create a bundle file that contains:

```tcl
RCA1
SCA1

```

The advertised certificate authority selection plays no part in the validation of the client certificate. The difference between the different browsers may have to do with whether or not these browsers have copies of both CA certs, and whether or not they send them in the TLS handshake. Most browser clients will send the client certificate, and any available subordinate CAs (but not the root CA) to the server, in case the server doesn’t have these. If you do an SSLDUMP on the client side, you’ll probably see the difference - some browsers will send the client cert only, and some will send the client cert **and** a subordinate CA (or CAs). The better option is to always have these CA certs available in the trusted bundle, not relying the client to send them.

---

<div class="post-metadata">

**Author:** ![LIH\_admin\_22571](https://avatars.discourse-cdn.com/v4/letter/l/e8c25b/32.png) [@LIH\_admin\_22571](https://community.f5.com/u/LIH_admin_22571)\
**Post date:** [November 7, 2018, 6:19am UTC](https://community.f5.com/t/need-value-for-session-ssl-cert-valid/15349/6 "2018-11-07T06:19:28Z")

</div>

Kevin, just for my information, I have the same problem on another Virtual Server, so the idea was to do exactly the same, but there is an Application Security Policy on this VS.

When I change the setting (same change as for the other), I have this error:  
 ![image_83045.png](https://d20hrnpixdzcsd.cloudfront.net/original/2X/f/ffd323921695d5d21fcb55067cb4eeff8aa69ac8.png)

Is this some kind of a bug ? I do not get what could be the problem with the security policy (it is only a SSL client profile change)

---

<div class="post-metadata">

**Author:** ![Kevin\_Stewart](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/kevin_stewart/32/15267_2.png) [@Kevin\_Stewart](https://community.f5.com/u/Kevin_Stewart)\
**Post date:** [November 7, 2018, 8:25am UTC](https://community.f5.com/t/need-value-for-session-ssl-cert-valid/15349/7 "2018-11-07T08:25:34Z")

</div>

Could simply be an mcpd validation error. What is the policy doing, and what happens if you try to remove the policy first, change the SSL profile, and then re-add the policy?

---

<div class="post-metadata">

**Author:** ![LIH\_admin\_22571](https://avatars.discourse-cdn.com/v4/letter/l/e8c25b/32.png) [@LIH\_admin\_22571](https://community.f5.com/u/LIH_admin_22571)\
**Post date:** [November 7, 2018, 8:56am UTC](https://community.f5.com/t/need-value-for-session-ssl-cert-valid/15349/8 "2018-11-07T08:56:32Z")

</div>

I was about to do exactly that, but I do not really know what this policy is doing, and I am afraid that I will not be able to re-add the policy 🙂

May I check something particular in the policy ?

 ![image_83047.png](https://d20hrnpixdzcsd.cloudfront.net/original/2X/c/c3ec2ac2172c8deceebce8902dd45c69ff8deaa2.png)

---

<div class="post-metadata">

**Author:** ![Kevin\_Stewart](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/kevin_stewart/32/15267_2.png) [@Kevin\_Stewart](https://community.f5.com/u/Kevin_Stewart)\
**Post date:** [November 7, 2018, 9:27am UTC](https://community.f5.com/t/need-value-for-session-ssl-cert-valid/15349/9 "2018-11-07T09:27:07Z")

</div>

Nothing looks out of the ordinary. So can you replicate this behavior on a “dummy” VIP so that you’re not affecting production traffic?

---

<div class="post-metadata">

**Author:** ![LIH\_admin\_22571](https://avatars.discourse-cdn.com/v4/letter/l/e8c25b/32.png) [@LIH\_admin\_22571](https://community.f5.com/u/LIH_admin_22571)\
**Post date:** [November 7, 2018, 9:42am UTC](https://community.f5.com/t/need-value-for-session-ssl-cert-valid/15349/10 "2018-11-07T09:42:08Z")

</div>

Not at the moment nope, I will sync/backup the config on the inactive node, do the modifications (disable security policy, modify ssl profile, enable security policy), and if there is a problem I will sync with the old configuration on the inactive node

---

<div class="post-metadata">

**Author:** ![LIH\_admin\_22571](https://avatars.discourse-cdn.com/v4/letter/l/e8c25b/32.png) [@LIH\_admin\_22571](https://community.f5.com/u/LIH_admin_22571)\
**Post date:** [November 7, 2018, 1:50pm UTC](https://community.f5.com/t/need-value-for-session-ssl-cert-valid/15349/11 "2018-11-07T13:50:05Z")

</div>

I disabled the security policy for the 4 virtual server we had:

 ![image_83050.png](https://d20hrnpixdzcsd.cloudfront.net/original/3X/8/7/8783969f177087636dfbd3895e98e1c83add9778.png)

But same behavior when I change the setting…

So I think this is not the problem, weird, any idea ?

---

<div class="post-metadata">

**Author:** ![LIH\_admin\_22571](https://avatars.discourse-cdn.com/v4/letter/l/e8c25b/32.png) [@LIH\_admin\_22571](https://community.f5.com/u/LIH_admin_22571)\
**Post date:** [November 7, 2018, 2:19pm UTC](https://community.f5.com/t/need-value-for-session-ssl-cert-valid/15349/12 "2018-11-07T14:19:24Z")

</div>

I have a clue, but I guess I cannot fix this specifically, needs the whole upgrade… 🙂

> **[404 Page not found | BIG-IP Documentation](https://techdocs.f5.com/kb/en-us/products/big-ip_ltm/releasenotes/related/relnote-supplement-bigip-14-0-0.htmlA674106)**
>
> Usage information and technical documentation for BIG-IP and other related F5 products

 ![image_83051.png](https://d20hrnpixdzcsd.cloudfront.net/original/2X/8/8aaf0c6e997649b14382bc956b0bc6a37471c181.png)

---

<div class="post-metadata">

**Author:** ![Kevin\_Stewart](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/kevin_stewart/32/15267_2.png) [@Kevin\_Stewart](https://community.f5.com/u/Kevin_Stewart)\
**Post date:** [November 9, 2018, 10:15am UTC](https://community.f5.com/t/need-value-for-session-ssl-cert-valid/15349/13 "2018-11-09T10:15:48Z")

</div>

Ahhhh, you’re talking about multiple client SSL profiles on the VIP (with different properties). I thought you were talking about some issue with client SSL and an ASM policy.

In that case, what you’re experiencing is expected. All of the client SSL profiles on a VIP (until BIG-IP 14.0) must have the same attributes.
