Table of Contents
If you need an SSL certificate for your node, follow the steps below:
-
Ensure that you use
root
account. It is necessary for further steps. -
Install
acme.sh
by running the following command:apt-get install socat curl https://get.acme.sh | sh -s [email protected]
-
Log out of the system.
-
Log in again.
-
Obtain the certificate. To do this, run the following command:
acme.sh --issue --standalone -d your_node.example.com \ --renew-hook "cd /opt/your_node; ./stop.sh; ./start.sh"
-
Install the certificate by running the following command:
acme.sh --install-cert -d your_node.example.com \ --fullchain-file /opt/your_node/db/cert_your_node/your_node.example.com.crt \ --key-file /opt/your_node/db/cert_your_node/your_node.example.com.key
You can add Telegram notifications to promptly get information about Acme script actions. To do this, run:
export TELEGRAM_BOT_CHATID=“Your Telegram ID” \
export TELEGRAM_BOT_APITOKEN=“Chatbot token” \
acme.sh --set-notify --notify-hook telegram
After you've installed the certificate, you can get the certificate status by running the following command:
acme.sh --info -d your_node.example.com