changeCertificate
Description
MATLAB® generates self-signed certificates which expire in 365 days. If the certificate
has expired, or you want to use your own certificate or generate a new certificate, call the
changeCertificate
function. The function overwrites the existing
certificate with the same name to the same location and overwrites the private key for the
certificate in the desktop vault. To change the certificate on a currently running function
connector, first call stop
on the
RESTFunctionConnectorObject
object, then call
changeCertificate
.
For more information, see HTTPS and Certificates.
changeCertificate(
generates a new
certificate and updates the certificate file at the location specified by the Certificate
property of the connector conn
)conn
.
changeCertificate(
specifies paths to a certificate file and private key file using name-value arguments. For
example,
conn
,Name=Value
)changeCertificate(conn,PrivateKey="C:\myDir\myPrivateKey.pem",Certificate="C:\myDir\myCertificate.pem")
specifies a custom certificate and private key for the connector.
Examples
Input Arguments
Version History
Introduced in R2024a