It is very nice to see that you built support for Let's Encrypt ACME directly into the GUI.
However, for me it isn't working. Could it be that 2FA login is not yet supported?
I've added an account (Let's Encrypt V2 Staging).
Then I added a challenge plugin for my provider INWX with the following data:
If I try to get the certificate, I'll get an authentication error:
The entered data is correct. I double checked.
So I guess the 2FA login is not yet supported in the GUI?
Then I tried to do it manually just to verify if it is working:
However in the Wiki it says:
But I've used
(Not sure where I got this information from)
It works perfectly fine if I do it manually.
So now my questions are:
However, for me it isn't working. Could it be that 2FA login is not yet supported?
I've added an account (Let's Encrypt V2 Staging).
Then I added a challenge plugin for my provider INWX with the following data:
Code:
INWX_User="<username>"
INWX_Password="<password>"
INWX_Shared_Secret="<totp-secret>"
If I try to get the certificate, I'll get an authentication error:
Code:
Loading ACME account details
Placing ACME order
Order URL: https://acme-staging-v02.api.letsencrypt.org/acme/order/XXXXXXXXXXXXXXXXXX
Getting authorization details from 'https://acme-staging-v02.api.letsencrypt.org/acme/authz-v3/XXXXXXXX'
The validation for sub.sub.domain.tld is pending!
[Fri Jul 10 15:31:06 CEST 2020] INWX API: Authentication error (username/password correct?)
[Fri Jul 10 15:31:06 CEST 2020] Error add txt for domain:_acme-challenge.sub.sub.domain.tld
TASK ERROR: command 'setpriv --reuid nobody --regid nogroup --clear-groups --reset-env -- /bin/bash /usr/share/proxmox-acme/proxmox-acme setup inwx sub.sub.domain.tld' failed: exit code 1
The entered data is correct. I double checked.
So I guess the 2FA login is not yet supported in the GUI?
Then I tried to do it manually just to verify if it is working:
Code:
apt install oathtool
wget -O - https://get.acme.sh | sh
export INWX_User="<username>"
export INWX_Password="<password>"
export INWX_Shared_Secret="<totp-secret>"
acme.sh \
--issue \
--dns dns_inwx \
--domain sub.sub.domain.tld \
--keylength 4096 \
--key-file /etc/pve/local/pveproxy-ssl.key \
--fullchain-file /etc/pve/local/pveproxy-ssl.pem \
--reloadcmd "systemctl restart pveproxy" \
--debug \
--test
However in the Wiki it says:
Do not replace or manually modify the automatically generated node certificate files in/etc/pve/local/pve-ssl.pem
and/etc/pve/local/pve-ssl.key
or the cluster CA files in/etc/pve/pve-root-ca.pem
and/etc/pve/priv/pve-root-ca.key
.
But I've used
/etc/pve/local/pveproxy-ssl.pem
instead of /etc/pve/local/pve-ssl.pem
.(Not sure where I got this information from)
It works perfectly fine if I do it manually.
So now my questions are:
- Is it currently somehow possible to get 2FA working in the GUI?
- Is it on todo list and will be implemented in a future version?
- Have I done it the right way when I did it manually? Is the file name
/etc/pve/local/pveproxy-ssl.pem
correct? - Is it good practice to do it manually or should I prefer GUI without 2FA? (Don't want to turn it off tbh.)