SNI Certificate (for HTTPS Listeners)
Scenarios
If you have an application that can be accessed through multiple domain names and each domain name uses a different certificate, you can enable SNI when you add an HTTPS listener.
SNI is an extension to TLS and enables a server to present multiple certificates on the same IP address and TCP port number. This allows multiple secure (HTTPS) websites (or any other service over TLS) to be served by the same IP address without requiring all websites to use the same certificate. SNI allows the client to submit the domain name information while sending an SSL handshake request. Once the load balancer receives the request, it queries the right certificate based on the domain name and returns the corresponding certificate to the client. If no certificate is found, the load balancer will return a default certificate.
A maximum of 30 SNI certificates can be configured for each listener.
Classic load balancers do not support SNI.
SNI is currently available in the following regions: CN North-Beijing4, CN East-Shanghai1, CN East-Shanghai2, CN South-Guangzhou, CN North-Beijing1, CN South-Guiyang1, AP-Hong Kong, and AP-Singapore.
Prerequisites
- You have created a load balancer by referring to Creating a Shared Load Balancer or Creating a Dedicated Load Balancer.
- You have added an HTTPS listener to the load balancer by referring to Adding an HTTPS Listener.
- You have created an SNI certificate by referring to Creating a Certificate.
Specify the domain name for the SNI certificate. Only one domain name can be specified for each certificate. Wildcard-domain certificates are supported.
As in the following figure, cer-default is the default certificate bound to the HTTPS listener, and cert-test01 and cert-test02 are SNI certificates.
The domain name of cert-test01 is set to www.test01.com and that of cert-test02 is set to www.test02.com.
If the domain name accessing the load balancer matches either of the domain name, the corresponding SNI certificate will be used for authentication. If no domain name is matched, the default certificate will be used for authentication.

Procedure
- Log in to the management console.
- In the upper left corner of the page, click
and select the desired region and project. - Click Service List. Under Network, click Elastic Load Balance.
- Locate the load balancer and click its name.
- Click Listeners.
- For a shared load balancer or a dedicated load balancer, locate the listener and click Configure on the right of SNI.
- For a classic load balancer, click Listeners, locate the listener, and click Modify in the Operation column. In the Modify Listener dialog box, modify the parameters as needed.
- Enable SNI and select the SNI certificate to be used.
- Click OK.
Last Article: Security Policy
Next Article: Backend Server

Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.