Use of acme.sh script to deploy certificates

Install acme.sh

root@acme:~# curl https://get.acme.sh | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   705  100   705    0     0   1476      0 --:--:-- --:--:-- --:--:--  1474
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  165k  100  165k    0     0  1303k      0 --:--:-- --:--:-- --:--:-- 1314k
[Tue Feb  5 20:50:31 UTC 2019] Installing from online archive.
[Tue Feb  5 20:50:31 UTC 2019] Downloading https://github.com/Neilpang/acme.sh/archive/master.tar.gz
[Tue Feb  5 20:50:32 UTC 2019] Extracting master.tar.gz
[Tue Feb  5 20:50:32 UTC 2019] It is recommended to install socat first.
[Tue Feb  5 20:50:32 UTC 2019] We use socat for standalone server if you use standalone mode.
[Tue Feb  5 20:50:32 UTC 2019] If you don't use standalone mode, just ignore this warning.
[Tue Feb  5 20:50:32 UTC 2019] Installing to /root/.acme.sh
[Tue Feb  5 20:50:32 UTC 2019] Installed to /root/.acme.sh/acme.sh
[Tue Feb  5 20:50:33 UTC 2019] Installing alias to '/root/.bashrc'
[Tue Feb  5 20:50:33 UTC 2019] OK, Close and reopen your terminal to start using acme.sh
[Tue Feb  5 20:50:33 UTC 2019] Installing cron job
no crontab for root
no crontab for root
[Tue Feb  5 20:50:33 UTC 2019] Good, bash is found, so change the shebang to use bash as preferred.
[Tue Feb  5 20:50:34 UTC 2019] OK
[Tue Feb  5 20:50:34 UTC 2019] Install success!

It creates an alias in bash, so need to start another bash session (or source the profile)

/bin/bash

Migrate Debian to systemd-networkd

mv /etc/network/interfaces /etc/network/interfaces.save
systemctl enable systemd-networkd

vi /etc/systemd/network/10-eth0.network

[Match]
Name=eth0

[Network]
Address=1.2.3.4/24
Gateway=1.2.3.1
DNS=1.2.3.2

or

[Network]
DHCP=ipv4