kchristensen / udm-le

Let's Encrypt support for Ubiquiti UniFi OS
MIT License
594 stars 79 forks source link

Error opening private.key TransIP DNS #35

Closed BurgerhoutJ closed 3 years ago

BurgerhoutJ commented 3 years ago

Hi,

I followed the manual, customized the .env-file and while it's running, I can see that the script is downloading some files from lego, created a personal key pair, but then the script needs to check via the API at TransIP. But everytime, the script is saying that he can't find the .key-file. I see the file with the ls-command and via WinSCP in the same directory as the .env- and .sh-files. See the screenshots for more info.

Who can help me? Thanks in advance.

image image

kchristensen commented 3 years ago

I'm not familiar with TransIP, but the issue is that lego is running in a Docker container, not natively on your UDMP.

If you can, you'll want to specify the location of the transip.key file to /root/.secrets/transip.key and then put the transip.key file in /mnt/data/udm-le/.secrets/, which is a directory you'll create on your UDMP. This directory gets mounted into the lego container when it runs, so lego will be able to see it.

BurgerhoutJ commented 3 years ago

Thanks... One step further. Now I have to check something with API and so on.

acme: error presenting token: transip: could not get token from authenticator: error requesting token: Your key signature is invalid or API is not enabled in your account

Will let you know what the outcome is.

BurgerhoutJ commented 3 years ago

For now I will stop. Maybe I'm gonna do it in a later stadium. So issue closed.