This container runs an Nginx web server with a certificate and private key stored in SDKMS or SmartKey.
To run this container, you need to have access to Fortanix SDKMS or SmartKey. Please create an account at https://www.smartkey.io, or use a SDKMS service instance hosted in your environment.
Using an existing key and certificate
To use an existing key and certificate in SDKMS, customize the following
docker.env file with the appropriate private key and certificate labels (called description in SDKMS), and the API key of the application added to SDKMS.
FORTANIX_API_ENDPOINT=<URL of SDKMS instance> FORTANIX_API_KEY=<insert your API key> FORTANIX_PRIVATE_KEY_LABEL=<insert your key label> FORTANIX_CERTIFICATE_LABEL=<insert your certificate label>
Using a key and certificate generated by this container
If you don't want to use a pre-existing key and certificate in SDKMS, customize the following
docker.env file, and just update the API Key of your application. The container will generate a private key in SDKMS and then will also create a self-signed TLS certificate to be used with the key.
FORTANIX_API_ENDPOINT=<URL of SDKMS instance> FORTANIX_API_KEY=<insert your API key>
sudo docker run -d -p 8443:443 --env-file docker.env fortanix/sdkms-nginx
Go to website at https://localhost:8443