DataScript: avi.ssl.set_ssl_certificate

DataScript

Function avi.ssl.set_ssl_certificate(<SSLKeyAndCertificate>)
Description This function is used to change the SSL key and certificate to a different object based on factors like Client IP, TLS server name etc. 
Events VS_DATASCRIPT_EVT_CLIENT_SSL_PRE_CONNECT
VS_DATASCRIPT_EVT_CLIENT_SSL_CLIENT_HELLO
Parameter Name of the SSL Key and certificate object
Returns None
Example

if avi.ssl.server_name() == "legacy.example.com" then 
    avi.ssl.set_ssl_certificate("RSACertificate")
    avi.ssl.set_ssl_certificate("ECCertificate")
end