Use a custom certificate
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.
Alternatively, 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.
-
Open your
config.json
file. -
Modify the file to include the
certChainPath
andkeyPath
for your certificate.
If you have a custom certificate, modify the
config.json
file to include thecertChainPath
andkeyPath
for your certificate as shown.
"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"
}
Updated about 2 years ago