j-c-m / ubnt-letsencrypt

Let's Encrypt setup instructions for Ubiquiti EdgeRouter
472 stars 68 forks source link

Failed to create the file /config/ssl/cacert.pem: No such file or directory #51

Closed uniquepurpose closed 10 months ago

uniquepurpose commented 10 months ago

When running the installation command on an EdgeRouter X (v2.0.9-hotfix.7) the following output is generated:

username@gate:~$ curl https://raw.githubusercontent.com/j-c-m/ubnt-letsencrypt/master/install.sh | sudo bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   764  100   764    0     0   1133      0 --:--:-- --:--:-- --:--:--  1135
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  216k  100  216k    0     0   295k      0 --:--:-- --:--:-- --:--:--  295k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3479  100  3479    0     0   5806      0 --:--:-- --:--:-- --:--:--  5808
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Warning: Failed to create the file /config/ssl/cacert.pem: No such file or
Warning: directory
  0  216k    0   849    0     0   1068      0  0:03:27 --:--:--  0:03:27  1067
curl: (23) Failed writing body (0 != 849)
username@gate:~$

The folder /config/ssl/ does not exist.

j-c-m commented 10 months ago

Oops, I have updated the install script to create the directory now.

e45ce85