SNI Sites not taking correct certificate.

I have configured one VIP with two certificate

aks.test.com

aks4.test.com

On SSL profile for aks.test.com i have enabled SNI feature and aks.test.com is working fine taking correct certificate (aks.test.com).

but aks4.test.com having not secure error on browser and taking the certificate of (aks.test.com).

Could someone please help what could be the issue in this case.

I hope you have done this ..If so , it should have worked ..

aks.test.com  >> On this ssl profile tick the check box - “Default SSL Profile for SNI”

aks4.test.com

Yes it is done. but not working

Would you be able to provide your SSL profiles configuration associated to this virtual server and the virtual server configuration so we can look at this further?

Hi Militza,

You can use the openssl command-line tool to check if SNI is configured correctly.

Here’s a command you can run:

openssl s_client -servername aks4.test.com -connect aks4.test.com:443 -tlsextdebug

This command will show you the details of the SSL/TLS handshake, including whether the server is using the correct certificate for the specified hostname

Check and share the test results.

ltm profile client-ssl clientssl-aks.test.com {
    app-service none
    cert-key-chain {
        aks.test.com_CA_Cert {
            cert aks.test.com
            chain CA_aks.test.com
            key aks.test.com
        }
    }
    defaults-from clientssl_cipheradapted
    inherit-ca-certkeychain true
    inherit-certkeychain false
    options { dont-insert-empty-fragments no-dtlsv1.2 }
    server-name none
    sni-default true
}

ltm profile client-ssl clientssl-aks4.test.com {
    app-service none
    cert-key-chain {
        aks4.test.com_CA_Cert {
            cert aks4.test.com
            chain CA_aks4.test.com
            key aks4.test.com
        }
    }
    defaults-from clientssl_cipheradapted
    inherit-ca-certkeychain true
    inherit-certkeychain false
}

openssl can not use.

@Militza I’m not seeing the virtual server configuration here if that can be provided so we can ensure that configuration is correct as well. Also, what code version are you running on this device?

you should be able to use it from the BIG-IP itself.