Obtaining TLS certificate
This information can be used by STRATO node administrators.
STRATO node runs as a Peer-to-Peer (P2P) network peer and a webserver (for API and Dashboard access.)
For secure communication, it is strongly encouraged to run STRATO on https://. This requires a TLS certificate for each of the nodes' domain names.
In some cases administrators may have wildcard certificates to cover any sub-domain one level down, e.g.
*.example.com to run nodes on:
However, this implies the manual process of certificate update when certificate expires and makes it hard to run STRATO on lower level domains like:
This would require you to obtain a new wildcard certificate for *.strato.example.com or a separate certificate for each of the domains from the Certificate Authority.
To implement and simplify the process, BlockApps' has created the BlockApps Letsenrypt Tool.
Please follow the steps in the README.md file on the GitHub repository to set up your automated certificate renewal for a STRATO node.
Certificate for STRATO Application
The tool also supports the update process for the renewal of certificate in your Application (for the cases when your Application is running on the same host as STRATO).
The tool scripts may also give you the general understanding of the certificate renewal process and help you build your custom solution on top of that if required.
Update Certificate Manually on a Live Node
In case you are not using the Letsencrypt Tool and need to manually update the certificate and the private key on a live STRATO node, follow these steps:
- Copy the certificates into the STRATO Nginx container:
sudo docker cp /path/to/server.pem strato_nginx_1:/etc/ssl/certs/server.pem sudo docker cp /path/to/server.key strato_nginx_1:/etc/ssl/private/server.key
- Reload the Nginx configuration (STRATO uses Openresty platform built on top of Nginx):
sudo docker exec strato_nginx_1 openresty -s reload