https

URL for secure connections

Syntax

--https host:port

Description

https specifies the interface port and the optional address or host name to use for secure client-server communication.

Starting in R2019b, if you set the https property, you must set the x509-private-key and x509-cert-chain properties; otherwise, the server fails to start.

Parameters

host

Host name or IP address of the machine running the server instance. If you do not specify the host, the server binds to any available interface.

port

Port number used by the server instance to accept connections. Bind to any available port by specifying 0.

Examples

Restrict access to the HTTPS interface for local clients only on port 9920.

--https localhost:9920

Bind to any free port. The bound address is written to $INSTANCE/endpoint/https.

--https 0

Bind to a specific IP address and port.

--https 234.27.101.3:9920

Bind to a specific host name on any free port.

--https my.hostname.com:0