Use a custom certificate

Configure your sandbox client to use a custom SSL certificate.

Before you begin

In order to complete this step, you must have already downloaded the Sandbox client.

You can use custom SSL certificates with Sandbox. If you set "secure": true in the Sandbox client configuration file, the client will automatically generate a self-signed certificate.
Note: You could generate a self-signed certificate with this command:
openssl req -x509 -newkey rsa:4096 -sha256 -nodes -keyout example.key -out example.crt -subj "/CN=example.com" -days 3650

Follow these steps to use a custom SSL certificate with your Sandbox.

How to

  1. Open your config.json file.
  2. Modify the file to include the certChainPath and keyPath for your certificate.
    "sandboxServerInfo": {
     "secure": true,
     "port": 9550,
     "host": "127.0.0.1",
     "cert": {
       "certChainPath": "/Users/asmith/Desktop/cert/example.crt",
       "keyPath": "/Users/asmith/Desktop/cert/example.key"
     }