Setting up a DigiCert Gateway
Prerequisites
gateway .jar application, available from your DigiCert account manager.
Java runtime environment version 14 or higher.
MAC address of the network device the gateway will be hosted on.
API token or authentication certificate (private key in PKCS12 format) generated in the DigiCert ONE instance that will use the gateway.
If you secure your gateway traffic through HTTPS, a TLS certificate (private key in PKCS12 format) on the host device.
To configure a new DigiCert Gateway:
In the IoT Trust Manager menu, select Integrations > DigiCert Gateways.
Select Create Gateway.
Enter general settings:
Gateway nickname
Description (optional)
Authentication method
API token or authentication certificate.
Select Next.
Enter network settings:
Allowed gateway IP addresses (optional)
To limit communication with DigiCert ONE, enter IP addresses for allowed gateway hosts.
MAC address
For the network device the gateway will be hosted on.
HTTPS port, TLS certificate location, and keystore password.
and/or
HTTP port.
Select Generate gateway configuration file.
In the popup, select Download configuration file.
Save the configuration yaml file to install on your gateway host.
To run the gateway service as a jar file:
On the gateway host device, create a new directory called dcone-gateway.
Belangrijk
Make sure the dcone-gateway directory is protected to restrict unauthorized access.
Copy the gateway.jar file into the dcone-gateway directory.
In the dcone-gateway directory, create a new directory called config.
Copy your configuration yaml file into the config directory.
Run the application:
java -jar dcone-gateway.jar --spring.config.location=config/application.yml
To redirect logging to a different directory:
java -jar dcone-gateway.jar --spring.config.location=config/application.yml > [path-to-directory]/gateway.log 2>&1
To run the gateway as a docker image:
Navigate to the directory where you want run the gateway.
Copy your configuration yaml file into the directory.
Run the application:
docker run -it -v "$(pwd)":/config -e JAVA_OPTS="-Dspring.config.location=/config/application.yml" -p 8080:8080 -p 8443:8443 dcone-gateway
Belangrijk
Insert correct ports as generated in your configuration yaml file.
To enable SSL support:
openssl pkcs12 -export -inkey [private_key] -in [certificate] -name [alias] -out [name_of_pkcs12]
or for the certificate chain:
openssl pkcs12 -export -inkey [private_key] -in [certificate] -certfile [chain_file] -out [name_of_pkcs12]