Set Up and Log In to MATLAB Production Server Admin Portal
R2026bFollow these instructions to set up, start, and log in to the Admin Portal for an on-premises installation of MATLAB® Production Server™. You can use the Admin Portal to manage a server instance.
Prerequisites
An installation of MATLAB Runtime
A version of MATLAB Production Server that is compatible with your MATLAB Runtime installation
An OIDC identity provider
Trusted SSL certificates
Create a Server Instance
Note
If you are using Windows®, run the
mps-setupcommand as an administrator. Do not, however, runmps-portalas an administrator.Run the mps-setup command from your MATLAB Production Server install location. Replace
<install_root>with the MATLAB Production Server install folder.This allows you to specify the MATLAB Runtime your server instance will use.<install_root>/script/mps-setupThen, create a new instance of MATLAB Production Server using mps-new.
For more information, see Create Server Instance Using Command Line.<install_root>/script/mps-new <mps_instance>
Create and Configure Certificates
To generate a certificate chain and private key for your MATLAB Production Server instance, use the mps-cert command.
<install_root>/script/mps-cert -C <mps_instance>Replace
<mps_instance>with the full path to the server instance directory.The generated certificate files are created in the
<mps_instance>/x509folder. Update themain_configserver configuration file in<mps_instance>/config/main_configto use the generated certificates. Set the following properties:Set
--x509-private-keyto./x509/server_key.pem.Set
--x509-cert-chainto./x509/server_cert.pem.Set
--httpsto the desired HTTPS port number.
Note
If you are using a newly generated certificate authority, import the
server_ca_cert.pemfile from the<mps_instance>/x509folder into your trust store.
Set Up Admin Portal
Note
Do not run admin portal services as an administrator on Windows or as a superuser on Linux®. This causes permissions issues when modifying files.
Open a terminal or command window and navigate to the
scriptsfolder of your MATLAB Production Server installation.Execute the mps-portal command with the
setupoption.<install_root>/script/mps-portal setup -C <mps_instance>This creates the
/admindirectory in your MATLAB Production Server instance folder, which contains the config files and logs for the Admin Portal.
Configure Access Control for Admin Portal
Register an application with an identity provider of your choice. For more about supported identity providers, see Application Access Control.
Use the
mps-portalcommand with thestartoption to start your server and its associated Admin Portal.<install_root>/script/mps-portal start -C <mps_instance>This command generates a URL to the Admin Portal welcome page. The URL will have the following format:
https://<hostname>:<port>/welcomeOpen the welcome page in a web browser. Use the interface to select your identity provider and specify values for the
issuer,clientId, andclientSecretbased on information provided by your identity provider. TheredirectUrlandscopefields are pre-populated based on your identity provider selection.Populate the user attribute for
"id" : "adminsaccessall"with the identifier of the administrator. The user attribute depends on the identity provider.Download the generated
portal_authn.jsonandprodserver_admin_authz.jsonfiles from the welcome page. These files contain the access control policy and identity provider configuration, respectively.Move
portal_authn.jsonto the/admin/portalfolder andprodserver_admin_authz.jsonto the/admin/apifolder, both under your MATLAB Production Server instance folder.
Log In to Admin Portal
Restart the Admin Portal by using the
mps-portalcommand with therestartoption.<install_root>/script/mps-portal restart -C <mps_instance>Open a web browser, and copy the URL displayed by the
mps-portalcommand. The URL has the following format:https://<hostname>:<port>/overview