Main Content

Enable SSL

Note

  • MATLAB®Web App Server™only supports the.pemSSL certificate format.

  • SSL keys must be 2048 bits in length and must be private.

  • Intermediate certificates are not supported by the server.

  • Private key should not be password protected.

To enable Secure Sockets Layer (SSL) on the server:

  1. Obtain a certificate file and private key file for the server from a certificate authority and place these files in a location accessible to theMATLAB Web App Server.

  2. At the terminal, navigate to the folder containingMATLAB Web App Servercommand-line scripts.

    Operating System Default Location of Command-Line Scripts

    Windows®(Administrator)

    C:\Program Files\MATLAB\MATLAB Web App Server\R2022a\script

    Linux®(sudo)

    /usr/local/MATLAB/MATLAB_Web_App_Server/R2022a/script

    macOS(sudo)

    /Applications/MATLAB/MATLAB_Web_App_Server/R2022a/script

  3. At the terminal, type:

    webapps-config set ssl_certificate_file

  4. At the terminal, type:

    webapps-config set ssl_private_key_file
  5. At the terminal, type:

    webapps-config set ssl_enabled true

  6. 时候伸出rt the server.

Note

The private key file must be in a location that is readable only by the server account.

A convenient location to store the certificate file and private key file is thewebapps_privatefolder. For the location of thewebapps_privatefolder, seeAuthentication.

Related Topics

External Websites