foorschtbar / routeros-letsencrypt-docker

Let's Encrypt for RouterOS Webserver/API
17 stars 5 forks source link

Fixed $KEY path check and removed "_." prefix from $CERTIFICATE / $KEY variables #3

Closed ilium007 closed 3 years ago

ilium007 commented 3 years ago

My install works now after making the changes in this PR.

xxx@debian02:~/routeros-letsencrypt$ docker-compose up
Creating network "routeros-letsencrypt_default" with the default driver
Creating routeros-letsencrypt_app_1 ... done
Attaching to routeros-letsencrypt_app_1
app_1  | +++ Welcome to routeros-letsencrypt +++
app_1  | Run it once to initiate...
app_1  | +++++++++++++++++++++++++++++++++++++++++++++
app_1  | Start cycle at 2021-10-10 23:55:09
app_1  | Mode: run
app_1  | Entpoint: staging (https://acme-staging-v02.api.letsencrypt.org/directory)
app_1  | Domains: router01.xxx.xxx.dev
app_1  | E-Mail: xxx@xxx.dev
app_1  | DNS provider: digitalocean
app_1  | 2021/10/10 23:55:10 [INFO] [router01.xxx.xxx.dev] acme: Obtaining bundled SAN certificate
app_1  | 2021/10/10 23:55:10 [INFO] [router01.xxx.xxx.dev] AuthURL: https://acme-staging-v02.api.letsencrypt.org/acme/authz-v3/678856478
app_1  | 2021/10/10 23:55:10 [INFO] [router01.xxx.xxx.dev] acme: authorization already valid; skipping challenge
app_1  | 2021/10/10 23:55:10 [INFO] [router01.xxx.xxx.dev] acme: Validations succeeded; requesting certificates
app_1  | 2021/10/10 23:55:11 [INFO] [router01.xxx.xxx.dev] Server responded with a certificate.
app_1  | Checking connection to RouterOS...Warning: Permanently added '192.168.88.1' (RSA) to the list of known hosts.
app_1  | DONE
app_1  | Removing previous certificate and delete certificate file if the file exist on RouterOS...DONE
app_1  | Uploading Certificate to RouterOS...DONE
app_1  | Importing certificate file and delete certificate file after import...DONE
app_1  | Deleting Certificate file if the file exist on RouterOS...DONE
app_1  | Upload Key to RouterOS...DONE
app_1  | Importing Key file and delete Certificate file after import...DONE
app_1  | Setting certificate to Webserver and API...DONE
app_1  | End cycle at 2021-10-10 23:55:20
app_1  | +++++++++++++++++++++++++++++++++++++++++++++
app_1  | Starting cron daemon...
app_1  | crond 4.5 dillon's cron daemon, started with loglevel notice
ilium007 commented 3 years ago

This address https://github.com/foorschtbar/routeros-letsencrypt-docker/issues/2

foorschtbar commented 3 years ago

Thank you for your contribution!