Configure KEYPEM and CERTPEM Environment Variables
Set KEYPEM and CERTPEM environment variables after generating your server certificate and private key to enable secure communications.
After generating a server certificate and private key, you need to configure environment variables that point to these files, specifically KEYPEM and CERTPEM. Setting these variables is crucial before running the local server for your application.
Setting the Environment Variables
To define the environment variables for your operating system, use the standard method for creating environment variables. Here’s how you can set them:
-
KEYPEM: This variable should point to the path of your server private key file.
KEYPEM=<path_to_file>/server.key -
CERTPEM: This variable should point to the path of your server certificate file.
CERTPEM=<path_to_file>/server.crt
Example for Windows
If you are using Windows, you can set the environment variables via the command prompt as follows:
set KEYPEM=c:\OpenSSL-Win64\server.keyset CERTPEM=c:\OpenSSL-Win64\server.crtImportant Note
Ensure these environment variables are configured correctly before starting your local server, as they are crucial for establishing secure communications.
Frequently Asked Questions (4)
How do I set the KEYPEM and CERTPEM environment variables on Windows?
Do I need to configure KEYPEM and CERTPEM on all operating systems?
What happens if I incorrectly set the KEYPEM or CERTPEM environment variables?
Can I use any names other than KEYPEM and CERTPEM for the environment variables?
Was this article helpful?
More in Integration
- Loop Returns Integration in NetSuite Connector 2026.1
Updated for NetSuite Connector 2026.2, introducing Salesforce Connector enhancements and Loop Returns integration.
- Concurrency Governance Limits in NetSuite SuiteCloud
Concurrency governance limits are determined by NetSuite service tiers and SuiteCloud Plus licenses, impacting integration performance.
- MCP Standard Tools SuiteApp for Record Management in NetSuite
Enhance record management, report generation, and data analysis with the MCP Standard Tools SuiteApp in NetSuite.
- NetSuite HTTPS Request Parameters for SuiteScript 2.x
Learn key HTTPS request parameters in NetSuite SuiteScript 2.x for effective external service integration.
Advertising
Reach Integration Professionals
Put your product in front of NetSuite experts who work with Integration every day.
Sponsor This Category