P4G_TLS_SERVER_NAME#

# set
<module-index>/<port-index> P4G_TLS_SERVER_NAME [<group_index>] <server_name>

# get
<module-index>/<port-index> P4G_TLS_SERVER_NAME [<group_index>] ?

Description#

Configure the server name advertised by the client in the TLS SNI (Server Name Indication) extension. Both the client and server must be configured with the same server_name, as the server will check the server name in Client Hello message. If server name is not configured (or configured blank), the SNI extension will not be inserted in the Client Hello message.

Actions#

set, get

Parameters#

server_name: string, server name inserted in the SNI TLS extension

Example#

# set
input:  0/1 P4G_TLS_SERVER_NAME [0] "www.myservername.com"
output: <OK>

# get
input:  0/1 P4G_TLS_SERVER_NAME [0] ?
output: 0/1 P4G_TLS_SERVER_NAME [0] "www.myservername.com"