Modify Root URL for HTTPS in the SSP Application
Change the ROOT variable in the SSP application for secure HTTPS access to the local server. Learn how to implement SSL certificates effectively.
To use HTTPS with the local server in the SSP application, you need to modify the ROOT variable to point to your secure domain. This ensures that your application can serve requests securely over HTTPS, which is crucial for data protection and security, especially in development environments.
Generate SSL Certificates and Private Keys
To access a secure domain via HTTPS when running the local server, you must generate an SSL certificate and a private key. Since the local server is only for testing purposes, a self-signed certificate is typically sufficient.
Steps to Generate SSL Certificate and Private Key
- Download and Install OpenSSL.
- Generate an RSA Private Key:
Run the following command:Enter and confirm a password for the certificate. This password will be used in later steps.bashopenssl genrsa -des3 -out ca.key 1024 - Create a New SSL Certificate:
Run the following command:Accept the defaults for fields; the only field required isbashopenssl req -new -sha256 -key ca.key -out ca.csrlocalhost. - Create a Self-Signed Certificate:
bashopenssl x509 -req -days 3600 -in ca.csr -out ca.crt -signkey ca.key
- Create a Server Key:
bashopenssl genrsa -des3 -out server.key 1024
- Create a Certificate Signing Request (CSR):
bashopenssl req -new -sha256 -key server.key -out server.csr
- (Optional) Remove the Password from the Server Certificate:
bashopenssl rsa -in server.key.org -out server.key
- Create a Self-Signed Server Certificate:
bashopenssl x509 -req -sha256 -days 3600 -in server.csr -signkey server.key -out server.crt
Configure the KEYPEM and CERTPEM Environment Variables
After generating your certificates, define environment variables that point to these files to use them within your server configuration:
KEYPEM:<path_to_file>/server.keyCERTPEM:<path_to_file>/server.crt
For example, on Windows:
set KEYPEM=c:\OpenSSL-Win64\server.key set CERTPEM=c:\OpenSSL-Win64\server.crt Install the Generated Certificates
To enable your generated SSL and server certificates for browser access, use the Certificate Import Wizard on Windows:
- Run the
server.crtfile. - Click Install Certificate and follow the wizard steps to place it in Trusted Root Certification Authorities.
Modify the Root URL of the SSP Application
To use HTTPS, change the value of the ROOT variable in your SSP application's index-local.ssp file:
- Open
<SCA_Source_Root>/index-local.ssp. - Update the
ROOTvariable:nonevar ROOT = 'https://localhost:7778/' - Compile and deploy the application using:
bashgulp deploy
Access the Local Server Using a Secure URL
To access your local server securely:
- Run:
bashgulp local
- Access it via:
nonehttps://mysite.com/c.<account_id>/<SSP_application>/shopping-local.ssp
Now, your local server should run securely over HTTPS, allowing you to develop and test under secure conditions.
Frequently Asked Questions (4)
What file needs to be modified to change the root URL for the SSP application in SuiteCommerce?
Does modifying the root URL in SuiteCommerce SSP applications require deployment?
Where is the `index-local.ssp` file for the Shopping application typically located?
Is the change to the root URL specific to any particular version of SCA?
Was this article helpful?
More in General
- Payment Date Prediction Feature in NetSuite
Payment Date Prediction in NetSuite utilizes machine learning to enhance financial planning by predicting invoice payment dates.
- NetSuite Ship Central Enhancements for Packing & Shipping
NetSuite Ship Central features enhance packing and shipping operations for improved efficiency and accuracy.
- New Role Setup for NetSuite AI Connector Service in 2026.1
The 2026.1 release adds a new role requirement for the NetSuite AI Connector Service, streamlining custom tool development.
- Generative AI Features in NetSuite 2026.1
Discover new generative AI features in NetSuite 2026.1, enhancing reporting, search, predictions, and development productivity.
Advertising
Reach General Professionals
Put your product in front of NetSuite experts who work with General every day.
Sponsor This Category