Forum Discussion

shixin's avatar
shixin
Icon for Nimbostratus rankNimbostratus
Oct 10, 2023

Use iRule to control choosing which SSL certificate to use based on SNI

VS address: 10.1.20.43

VS port: 443

There are two SSL Profiles on F5: web1-ssl and web2-ssl.

I want to use an iRule to control the selection of which SSL certificate to use based on SNI:

For example, when a user visits web1.com, the VS uses the SSL Profile web1-ssl;

When a user accesses web2.com, this VS uses the SSL Profile web2-ssl.

Please tell me, how should I write this iRule?

grateful!

3 Replies